X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fapi%2FMakefile;h=0611406df6a5d9b833b4c70cee4a1063b3e65995;hb=50ab48b035c2555e09cc9ac94c74f45b74b234f4;hp=18d050acdcce482f9dfb7fd07409083ab2b057a8;hpb=f9df5c3d19d9ecf46b70689dedf761828a6d1d07;p=libc-test diff --git a/src/api/Makefile b/src/api/Makefile index 18d050a..0611406 100644 --- a/src/api/Makefile +++ b/src/api/Makefile @@ -1,23 +1,5 @@ -CFLAGS+=-std=c99 -pedantic-errors -Wall -Werror -Wno-unused -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -#CFLAGS+=-DX_PS -DX_TPS -DX_TYM -DX_RPP_TPP -DX_FMTMSG -DX_NDBM -LDFLAGS+=-lcrypt -ldl -lm -lpthread -lrt - -SRC=$(sort $(wildcard *.c)) -ERR=$(SRC:.c=.err) - --include ../../config.mak - -all: all.err - cat $< - -all.err: $(ERR) - LC_ALL=C $(CC) $(LDFLAGS) -o main *.o 2>main.err || true - cat $(ERR) |\ - grep -v 'Each undeclared identifier is reported only once' |\ - grep -v 'for each function it appears in' >$@ || true - -%.err: %.c - LC_ALL=C $(CC) $(CFLAGS) -c $< 2>$@ || true - -clean: - rm -f main *.o *.err +all: +%: FORCE + $(MAKE) -C ../.. B=src src/api/$@ +.SUFFIXES: +FORCE: ;