diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-01-09 09:15:18 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-01-09 09:15:18 +0000 |
commit | fa9c5dea9ed8d0f8455b6a457232af2b36d94469 (patch) | |
tree | ca029b25ec56cb16771335793fb5944e872a390b /sys/arch/atari/stand/tostools/Makefile.inc | |
parent | c5e97a05603999728235836b1742439de02920fb (diff) |
from netbsd:
Part of the tostools reorganization. All directories now contain a Makefile
and the user interface to the various tools has been standarized.
Diffstat (limited to 'sys/arch/atari/stand/tostools/Makefile.inc')
-rw-r--r-- | sys/arch/atari/stand/tostools/Makefile.inc | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/sys/arch/atari/stand/tostools/Makefile.inc b/sys/arch/atari/stand/tostools/Makefile.inc new file mode 100644 index 00000000000..e5f633c5de7 --- /dev/null +++ b/sys/arch/atari/stand/tostools/Makefile.inc @@ -0,0 +1,64 @@ +# $NetBSD: Makefile.inc,v 1.1 1996/01/07 22:05:41 leo Exp $ + +# +# Configurable stuff. +# +CC = cc +#CC = gcc +CPP = cpp +#CPP = gcpp +#AS = as +AS = gas +AR = ar rcs +RM = rm -f +AWK = awk + +# +# Any system specific additional libraries. +# +#LIBS := ${LIBS} -liio -lport +LIBS := ${LIBS} -ltermios + +DEBUG = +#DEBUG = -g +OPTIM = -O +#OPTIM = -O2 -fomit-frame-pointer +BASREL = +#BASREL = -mpcrel -mbaserel +STRIP = +#STRIP = -Wl,-s + +# End of configuration section. + + +HEADERS := ${HEADERS} ../libtos/libtos.h +LDADD := ${LDADD} ../libtos/libtos.a +INCL := ${INCL} -I. -I../libtos +DEFS := ${DEFS} -DTOSTOOLS + +CFLAGS := ${CFLAGS} -Wall ${DEBUG} ${BASREL} ${OPTIM} ${INCL} +LDFLAGS := ${LDFLAGS} ${DEBUG} ${BASREL} ${STRIP} +CPPFLAGS:= ${CPPFLAGS} ${DEFS} ${INCL} + +.PHONY: all clean install + +# +# Either ${LIB} or ${PROG} is set. +# +all: ${LIB} ${PROG} + +clean: + ${RM} ${LIB} ${PROG} ${OBJS} ${CLEAN} a.out core + +install: +# @if [ "${PROG}" ]; then \ +# ...; \ +# fi + +${OBJS}: ${HEADERS} + +.c.o: + ${CC} ${CFLAGS} ${CPPFLAGS} -o $@ -c $< + +.s.o: + ${CPP} ${CPPFLAGS} $< | ${AS} ${ASFLAGS} -o $@ |