1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-06 22:51:41 +00:00
freebsd-ports/devel/asis/files/Makefile.bsd
Neil Blakey-Milner b45c6f59e4 Add asis, the Ada Semantic Interface Specification.
PR:		ports/19873
Submitted by:	Thomas Quinot <quinot@inf.enst.fr>
2000-08-01 10:00:31 +00:00

23 lines
964 B
Makefile

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 asistant && \
gnatmake ${CFLAGS} -o ../asistant.prg asistant-driver -I../asis -I../gnat -I../obj -largs -L.. -lasis-${PORTVERSION}
cd examples/ds && \
gnatmake ${CFLAGS} -o ../../display_source display_source ${ASISPROGFLAGS}
cd examples/gnatelim && \
gnatmake ${CFLAGS} -o ../../gnatelim gnatelim-driver ${ASISPROGFLAGS}
cd examples/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