aboutsummaryrefslogtreecommitdiff
path: root/devel/asis/files/Makefile.bsd
blob: eff73055df4b1a4689ae5f84244d6d82a5de4939 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
ASISPROGFLAGS=-I../../asis -I../../gnat -I../../obj -largs -L../.. -lasis-${PORTVERSION}

all:
	${GMAKE} -C obj clean bld-objs CFLAGS="${CFLAGS} -fPIC" CC=adagcc RM="rm -f"
	adagcc -shared -Wl,-soname,libasis-${PORTVERSION}.so.1 \
	  -o libasis-${PORTVERSION}.so.1 obj/*.o -lc
	${LN} -sf libasis-${PORTVERSION}.so.1 libasis-${PORTVERSION}.so
	${GMAKE} -C obj clean libasis.a CFLAGS="${CFLAGS}" CC=adagcc
	chmod a-w obj/*.ali
	cd examples/ds && \
	gnatmake ${CFLAGS} -o ../../display_source display_source ${ASISPROGFLAGS}
	cd tools/asistant && \
	gnatmake ${CFLAGS} -o ../../asistant.prg asistant-driver ${ASISPROGFLAGS}
	cd tools/gnatelim && \
	gnatmake ${CFLAGS} -o ../../gnatelim gnatelim-driver ${ASISPROGFLAGS}
	cd tools/gnatstub && \
	gnatmake ${CFLAGS} -o ../../gnatstub gnatstub-driver ${ASISPROGFLAGS}

clean:
	${GMAKE} clean
	rm -f asistant.prg display_source gnatelim gnatstub libasis*.so.*
	rm -f libasis*.so