1 # $NetBSD: Makefile.inc,v 1.2 2001/10/11 07:07:41 leo Exp $
17 # Any system specific additional libraries.
19 #LIBS := ${LIBS} -liio -lport
20 LIBS := ${LIBS} -ltermios
25 #OPTIM = -O2 -fomit-frame-pointer
27 #BASREL = -mpcrel -mbaserel
31 # End of configuration section.
34 HEADERS := ${HEADERS} ../libtos/libtos.h
35 LDADD := ${LDADD} ../libtos/libtos.a -lz
36 INCL := ${INCL} -I. -I../libtos
37 DEFS := ${DEFS} -DTOSTOOLS -DCOMPRESSED_READ
39 CFLAGS := ${CFLAGS} -Wall ${DEBUG} ${BASREL} ${OPTIM} ${INCL}
40 LDFLAGS := ${LDFLAGS} ${DEBUG} ${BASREL} ${STRIP}
41 CPPFLAGS:= ${CPPFLAGS} ${DEFS} ${INCL}
43 .PHONY: all clean install
46 # Either ${LIB} or ${PROG} is set.
51 ${RM} ${LIB} ${PROG} ${OBJS} ${CLEAN} a.out core
54 # @if [ "${PROG}" ]; then \
61 ${CC} ${CFLAGS} ${CPPFLAGS} -o $@ -c $<
64 ${CPP} ${CPPFLAGS} $< | ${TOOL_SED} -e 's/%//g' \
65 | ${AS} ${ASFLAGS} -o $@