blob: a475abd56cfb5a1f1482d053c72fbd516e33f884 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
INCLUDES += libnml/inifile
../include/%.h: ./libnml/inifile/%.h
cp $^ $@
../include/%.hh: ./libnml/inifile/%.hh
cp $^ $@
LIBINISRCS := libnml/inifile/inifile.cc
$(call TOOBJSDEPS, $(LIBINISRCS)) : EXTRAFLAGS=-fPIC
INIFILESRCS := libnml/inifile/inivar.cc
USERSRCS += $(INIFILESRCS) $(LIBINISRCS)
TARGETS += ../lib/liblinuxcncini.so ../lib/liblinuxcncini.so.0
../lib/liblinuxcncini.so.0: $(call TOOBJS,$(LIBINISRCS))
$(ECHO) Creating shared library $(notdir $@)
@mkdir -p ../lib
@rm -f $@
$(Q)$(CXX) $(LDFLAGS) -Wl,-soname,$(notdir $@) -shared -o $@ $^
../bin/inivar: $(call TOOBJS, $(INIFILESRCS)) ../lib/liblinuxcncini.so.0
$(ECHO) Linking $(notdir $@)
$(Q)$(CXX) $(LDFLAGS) -o $@ $^
TARGETS += ../bin/inivar
|