-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (20 loc) · 776 Bytes
/
Makefile
File metadata and controls
28 lines (20 loc) · 776 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
CC = gcc
PROJECTDIR = .
CFLAGS = -Wall
DEBUG = -g -DDEBUG
default: phunt
debug: CFLAGS += $(DEBUG)
debug: default
test_util:
$(CC) test_util.c util.c $(CFLAGS) -g -DDEBUG -o $(PROJECTDIR)/test_util
test_log:
$(CC) test_log.c log.c $(CFLAGS) -g -DDEBUG -o $(PROJECTDIR)/test_log
test_action:
$(CC) test_action.c action.c util.c log.c $(CFLAGS) -g -DDEBUG -o $(PROJECTDIR)/test_action
test_actionlist:
$(CC) test_actionlist.c actionlist.c action.c util.c log.c $(CFLAGS) -g -DDEBUG -o $(PROJECTDIR)/test_actionlist
phunt: phunt.c
$(CC) phunt.c actionlist.c action.c util.c log.c $(CFLAGS) -o $(PROJECTDIR)/phunt
clean:
rm -f *.o
@ rm $(PROJECTDIR)/phunt $(PROJECTDIR)/test_util $(PROJECTDIR)/test_log $(PROJECTDIR)/test_actionlist $(PROJECTDIR)/test_action