Debian Codegraph @

ipl/packs/loadfuncpp/doc/Makefile.mak

raw
1
2 ifndef TARGET
3 ifneq ($(strip $(shell g++ -v 2>&1 | grep "cygwin")),)
4 TARGET=cygwin
5 else
6 TARGET=other
7 endif
8 endif
9
10 FLAGS_cygwin = /opt/icon/bin/iload.a -Wl,--enable-auto-import
11 FLAGS_other =
12
13 PIC_other = -fPIC
14
15 EXAMPLES = #exe#
16 DYNAMICS = #so#
17
18 %.so : %.cpp loadfuncpp.h
19 g++ -shared $(PIC_$(TARGET)) -o $@ $< $(FLAGS_$(TARGET))
20
21 %.exe : %.icn %.so
22 icont -so $@ $*
23
24 default: $(DYNAMICS) $(EXAMPLES)
25
26 .PHONY : loadfuncpp.h
27
28 loadfuncpp.h : ../loadfuncpp.h
29 cp ../loadfuncpp.h ./
30
31 test : clean default
32
33 clean :
34 rm -f *.exe *.so *.o *% *~ core .#*