summaryrefslogtreecommitdiff
path: root/ipl/packs/loadfuncpp/doc/Makefile.mak
blob: 7a10f86feb56adc4169b3362b9c8ca5e64a87075 (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
26
27
28
29
30
31
32
33
34

ifndef TARGET
ifneq ($(strip $(shell g++ -v 2>&1 | grep "cygwin")),)
TARGET=cygwin
else
TARGET=other
endif
endif

FLAGS_cygwin = /opt/icon/bin/iload.a -Wl,--enable-auto-import
FLAGS_other = 

PIC_other = -fPIC

EXAMPLES = #exe#
DYNAMICS = #so#

%.so : %.cpp loadfuncpp.h
	g++ -shared $(PIC_$(TARGET)) -o $@ $< $(FLAGS_$(TARGET))

%.exe : %.icn %.so
	icont -so $@ $*

default: $(DYNAMICS) $(EXAMPLES)

.PHONY : loadfuncpp.h

loadfuncpp.h : ../loadfuncpp.h
	cp ../loadfuncpp.h ./

test : clean default 

clean :
	rm -f *.exe *.so *.o *% *~ core .#*