summaryrefslogtreecommitdiff
path: root/package/toolbox/src/common.mk
blob: ab0728f182ee3d0109f24ac64856a347842a70f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
OBJS:=		${SRCS:.c=.o}
CFLAGS?=	-Os -Wall
CPPFLAGS+=	-I.
#CPPFLAGS+=	-D_FILE_OFFSET_BITS=64
CPPFLAGS+=	-isystem ../lib
CPPFLAGS+=	-D'__COPYRIGHT(x)=' -D'__RCSID(x)='
CPPFLAGS+=	-D'__unused=__attribute__((__unused__))'
CPPFLAGS+=	-D'__dead=__attribute__((__noreturn__))'
CLEANFILES+=	${OBJS} ${PROG}

all:

COMPILE.c=	${CC} ${CPPFLAGS} ${CFLAGS} ${CFLAGS_$@} -c

.c.o:
	${COMPILE.c} -o $@ $<

clean:
	rm -f ${CLEANFILES}

# no depend magic; if you change a .h file, just make clean