Remove duplicate rules in 2004/vik2/Makefile

This commit is contained in:
Cody Boone Ferguson committed 2023-03-22 06:38:34 -07:00
1 parent c8c1dd403d
commit 601596d1be
2 files changed
+15 -22

No files matched your search

+5 -12
View File
@@ -1,15 +1,3 @@
vik2: vik2.c
@${RM} -f vik2_1.c
${CC} -E '-DSTOP=_5' '-DFNAME="vik2_1.c"' vik2.c > vik2_1.c
@${RM} -f vik2_2.c
${CC} -E vik2_1.c > vik2_2.c
${CC} -O vik2_2.c -o vik2
vik2_clean:
${RM} -f vik2_1.c vik2_2.c vik2.o
vik2_clobber: vik2_clean
${RM} -f vik2
#!/usr/bin/env make #!/usr/bin/env make
# #
# IOCCC 2004 winning entry - vik2 # IOCCC 2004 winning entry - vik2
@@ -225,6 +213,11 @@ clean:
echo ${RM} -f indent.c; \ echo ${RM} -f indent.c; \
${RM} -f indent.c; \ ${RM} -f indent.c; \
fi fi
vik2_clean:
${RM} -f vik2_1.c vik2_2.c vik2.o
vik2_clobber: vik2_clean
${RM} -f vik2
clobber: clean clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET} ${RM} -f ${TARGET} ${ALT_TARGET}
+10 -10
View File
@@ -195,16 +195,16 @@ the output file of the cpp pre-processor. The time taken to pre process
the program were measured using gnu cpp on my 2.0MHz P4 with 512Mb ram the program were measured using gnu cpp on my 2.0MHz P4 with 512Mb ram
and a lot of disk. and a lot of disk.
Generated Recursive Max nest Intermediate Generated Recursive Max nest Intermediate
Level prime nrs includes count file size Time Level prime nrs includes count file size Time
_3 < 8 2 322 9 74 748 4" _3 < 8 2 322 9 74 748 4"
_4 < 16 4 672 9 182 652 9" _4 < 16 4 672 9 182 652 9"
_5 < 32 14 237 9 629 121 32" _5 < 32 14 237 9 629 121 32"
_6 < 64 43 748 9 1 998 134 1'41" _6 < 64 43 748 9 1 998 134 1'41"
_7 < 128 149 851 11 6 823 575 5'50" _7 < 128 149 851 11 6 823 575 5'50"
_8 < 256 526 874 17 24 028 933 20'37" _8 < 256 526 874 17 24 028 933 20'37"
_9 < 512 1 920 272 38 65 527 808(*) 1h 42'19"(*) _9 < 512 1 920 272 38 65 527 808(*) 1h 42'19"(*)
_10 < 1024 6 826 389 114 63 782 912(*) 2h 47'58"(*) _10 < 1024 6 826 389 114 63 782 912(*) 2h 47'58"(*)
(*) Before cpp crashed. (*) Before cpp crashed.