| 1 |
|
| 2 |
#Automatically generated from Makefile.mak and examples.txt by ../savex.icn |
| 3 |
|
| 4 |
ifndef TARGET |
| 5 |
|
| 6 |
ifneq ($(strip $(shell g++ -v 2>&1 | grep "darwin")),) |
| 7 |
TARGET=mac |
| 8 |
else |
| 9 |
ifneq ($(strip $(shell g++ -v 2>&1 | grep "cygwin")),) |
| 10 |
TARGET=cygwin |
| 11 |
else |
| 12 |
TARGET=other |
| 13 |
endif |
| 14 |
endif |
| 15 |
|
| 16 |
endif |
| 17 |
|
| 18 |
|
| 19 |
FLAGS_cygwin = /opt/icon/bin/iload.a -Wl,--enable-auto-import |
| 20 |
FLAGS_other = |
| 21 |
|
| 22 |
SHARED_mac = -bundle -undefined suppress |
| 23 |
SHARED_cygwin = -shared |
| 24 |
SHARED_other = -shared |
| 25 |
|
| 26 |
IMPLIB_cygwin = -Wl,--out-implib=iload.a |
| 27 |
PIC_other = -fPIC |
| 28 |
PIC_mac = -flat_namespace |
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
EXAMPLES = callicon.exe coexp.exe extwidget.exe iterate.exe iterate2.exe iterate3.exe jmexample.exe kwd_vbl.exe methodcall.exe mkexternal.exe runerr.exe stop.exe |
| 33 |
DYNAMICS = callicon.so coexp.so extwidget.so iterate.so iterate2.so iterate3.so jmexample.so kwd_vbl.so methodcall.so mkexternal.so runerr.so stop.so |
| 34 |
|
| 35 |
%.so : %.cpp loadfuncpp.h loadfuncpp.u1 |
| 36 |
g++ $(SHARED_$(TARGET)) $(PIC_$(TARGET)) -o $@ $< $(FLAGS_$(TARGET)) |
| 37 |
|
| 38 |
%.exe : %.icn %.so iload.so |
| 39 |
icont -so $@ $* |
| 40 |
|
| 41 |
default: $(DYNAMICS) $(EXAMPLES) |
| 42 |
|
| 43 |
.PHONY : iload.so loadfuncpp.h loadfuncpp.u1 |
| 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 .#* *.u? |