diff options
Diffstat (limited to 'cpp/Makefile')
-rw-r--r-- | cpp/Makefile | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/cpp/Makefile b/cpp/Makefile index b5d5322..0ea43cc 100644 --- a/cpp/Makefile +++ b/cpp/Makefile @@ -5,11 +5,11 @@ all: bcc-cpp bcc-cpp: main.o cpp.o hash.o token1.o token2.o $(CC) $(CFLAGS) -o bcc-cpp main.o cpp.o hash.o token1.o token2.o -realclean: clean - rm -f bcc-cpp token1.h token2.h +clean realclean: + rm -f bcc-cpp main.o cpp.o hash.o token1.o token2.o tmp.h -clean: - rm -f main.o cpp.o hash.o token1.o token2.o +maintclean: realclean + rm -f token1.h token2.h main.o: cc.h cpp.o: cc.h @@ -20,7 +20,9 @@ token1.o: token1.h token2.o: token2.h token1.h: token1.tok - gperf -aptTc -N is_ctok -H hash1 token1.tok > token1.h + gperf -aptTc -N is_ctok -H hash1 token1.tok > tmp.h + mv tmp.h token1.h token2.h: token2.tok - gperf -aptTc -k1,3 -N is_ckey -H hash2 token2.tok > token2.h + gperf -aptTc -k1,3 -N is_ckey -H hash2 token2.tok > tmp.h + mv tmp.h token2.h |