.PHONY: clean
clean:
- rm -f $(PROGS_OUT)/progs.dat $(PROGS_OUT)/menu.dat $(PROGS_OUT)/csprogs.dat
- rm -f tmp/*.qc tmp/*.d tmp/*.txt
+ rm -f $(PROGS_OUT)/{csprogs,progs,menu}.dat
+ rm -f ../.tmp/*.{qc,d,txt}
$(QCCVERSIONFILE):
$(RM) qccversion.*
$(PROGS_OUT)/csprogs.dat: client/progs.inc $(QCCVERSIONFILE)
@echo make[1]: Entering directory \`$(PWD)/client\'
sh ./qcc.sh client $@ $<
--include tmp/client.d
+-include ../.tmp/client.d
$(PROGS_OUT)/progs.dat: server/progs.inc $(QCCVERSIONFILE)
@echo make[1]: Entering directory \`$(PWD)/server\'
sh ./qcc.sh server $@ $<
--include tmp/server.d
+-include ../.tmp/server.d
$(PROGS_OUT)/menu.dat: menu/progs.inc $(QCCVERSIONFILE)
@echo make[1]: Entering directory \`$(PWD)/menu\'
sh ./qcc.sh menu $@ $<
--include tmp/menu.d
+-include ../.tmp/menu.d
.PHONY: testcase
testcase:
CPP="${CPP} -I. ${QCCIDENT} ${QCCDEFS} -D${PROG}"
set -x
-${CPP} -MMD -MP -MT ${OUT} -Wall -Wundef -Werror -o ./tmp/${MODE}.txt ${IN}
-${CPP} -dM 1>./tmp/${MODE}_macros.txt -H 2>./tmp/${MODE}_includes.txt ${IN}
-sed 's/^#\(line\)\? \([[:digit:]]\+\) "\(.*\)".*/\n#pragma file(\3)\n#pragma line(\2)/g' ./tmp/${MODE}.txt > ./tmp/${MODE}.qc
+${CPP} -MMD -MP -MT ${OUT} -Wall -Wundef -Werror -o ../.tmp/${MODE}.txt ${IN}
+${CPP} -dM 1>../.tmp/${MODE}_macros.txt -H 2>../.tmp/${MODE}_includes.txt ${IN}
+sed 's/^#\(line\)\? \([[:digit:]]\+\) "\(.*\)".*/\n#pragma file(\3)\n#pragma line(\2)/g' ../.tmp/${MODE}.txt > ../.tmp/${MODE}.qc
cd ${MODE}
-${QCC} ${QCCFLAGS} -o ${OUT} ../tmp/${MODE}.qc
+${QCC} ${QCCFLAGS} -o ${OUT} ../../.tmp/${MODE}.qc