make a mole hill out of 1991/ant
This commit is contained in:
1 parent
4e00062a3e
commit
33fa379314
3 files changed
+19
-5
No files matched your search
+2
-1
@@ -1,4 +1,5 @@
|
||||
ant
|
||||
hill
|
||||
ant.orig
|
||||
hill
|
||||
mole
|
||||
prog.orig
|
||||
+11
-3
@@ -113,8 +113,8 @@ ENTRY= ant
|
||||
PROG= ${ENTRY}
|
||||
#
|
||||
OBJ= ${PROG}.o
|
||||
DATA=
|
||||
TARGET= ${PROG}
|
||||
DATA= README.md
|
||||
TARGET= ${PROG} hill mole
|
||||
#
|
||||
ALT_OBJ=
|
||||
ALT_TARGET=
|
||||
@@ -132,9 +132,17 @@ all: data ${TARGET}
|
||||
clean clobber install love haste waste maker easter_egg \
|
||||
sandwich supernova deep_magic magic charon pluto
|
||||
|
||||
${PROG}: ${PROG}.c
|
||||
${PROG}: ${PROG}.c hill
|
||||
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
|
||||
|
||||
hill: README.md
|
||||
${RM} -f $@
|
||||
${CP} -f -v $? $@
|
||||
|
||||
mole: ${PROG}.c hill
|
||||
${RM} -f $@
|
||||
${CAT} ${PROG}.c hill > $@
|
||||
|
||||
# alternative executable
|
||||
#
|
||||
alt: data ${ALT_TARGET}
|
||||
|
||||
+6
-1
@@ -27,10 +27,15 @@ program exit without doing anything.
|
||||
### Try:
|
||||
|
||||
```sh
|
||||
cp README.md hill
|
||||
make hill
|
||||
./ant hill
|
||||
```
|
||||
|
||||
```sh
|
||||
make mole
|
||||
./ant mole
|
||||
```
|
||||
|
||||
|
||||
## Judges' remarks:
|
||||
|
||||
|
||||
Reference in new issue
Block a user