-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (24 loc) · 687 Bytes
/
Copy pathMakefile
File metadata and controls
33 lines (24 loc) · 687 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Leave in the -O blast you!
CFLAGS= -O2 -Wall -Wextra
LDLIBS= -lncurses
FILES= airstrike.c etc.c midway.c movebombs.c moveships.c screen.c
OBJS= airstrike.o etc.o midway.o movebombs.o moveships.o screen.o
PROG= midway
JUNKFILES= ${PROG} fluff junk tags
PUB= /usr/public
all: ${PROG}
${PROG}: ${OBJS}
${CC} ${OBJS} -o ${PROG} ${LDLIBS}
${OBJS}: midway.h
install: ${PUB}/${PROG} ${PUB}/${PROG}.txt
${PUB}/${PROG}: ${PROG}
cp ${PROG} ${PUB}
chmod 755 ${PUB}/${PROG}
cp /dev/null ${PUB}/${PROG}.log
chmod 666 ${PUB}/${PROG}.log
${PUB}/${PROG}.txt: README
cp README ${PUB}/${PROG}.txt
chmod 644 ${PUB}/${PROG}.txt
clean:
${RM} ${OBJS} ${JUNKFILES}
.PHONY: all install clean