Debian Codegraph @

ipl/packs/loadfuncpp/doc/Makefile

raw
1
2 #Automatically generated from Makefile.mak and examples.txt by ../savex.icn
3
4 # icont -ucs file.icn -> u1, u2, goes in the /opt/icon/lib/.
5 # g++ stuff -> .os, goes in the /opt/icon/bin/.
6
7
8 ifndef TARGET
9
10 ifneq ($(strip $(shell g++ -v 2>&1 | grep "darwin")),)
11 TARGET=mac
12 else
13 ifneq ($(strip $(shell g++ -v 2>&1 | grep "cygwin")),)
14 TARGET=cygwin
15 else
16 TARGET=other
17 endif
18 endif
19
20 endif
21
22 FLAGS_cygwin = /opt/icon/bin/iload.a -Wl,--enable-auto-import
23 FLAGS_other =
24
25 SHARED_mac = -bundle -undefined suppress
26 SHARED_cygwin = -shared
27 SHARED_other = -shared
28
29 PIC_other = -fPIC
30 PIC_mac = -flat_namespace
31
32 EXAMPLES = bang.exe divide.exe divide2.exe dull.exe generator.exe isexternal.exe iterate.exe keyword.exe makelist.exe object.exe
33 DYNAMICS = bang.so divide.so divide2.so dull.so generator.so isexternal.so iterate.so keyword.so makelist.so object.so
34
35 %.so : %.cpp loadfuncpp.h
36 g++ $(SHARED_$(TARGET)) $(PIC_$(TARGET)) -o $@ $< $(FLAGS_$(TARGET))
37
38 %.exe : %.icn %.so
39 icont -so $@ $*
40
41 default: $(DYNAMICS) $(EXAMPLES)
42
43 .PHONY : loadfuncpp.h
44
45 loadfuncpp.h : ../loadfuncpp.h
46 cp ../loadfuncpp.h ./
47
48 test : clean default
49
50 clean :
51 rm -f *.exe *.so *.o *% *~ core .#*