Revision 105, 343 bytes
(checked in by bhilburn, 15 years ago)
|
Totally re-organized the codebase. This totally breaks everything. I mean
_everything_. Deleted redundant files, local includes, and copied all makefiles
to top-level directory. Need to rewrite all of them.
|
Line | |
---|
1 | # |
---|
2 | # Policy Engine Makefile |
---|
3 | # |
---|
4 | |
---|
5 | TESTS = policy_engine |
---|
6 | all: $(TESTS) |
---|
7 | |
---|
8 | cc = gcc |
---|
9 | CFLAGS = -Wall -O3 |
---|
10 | LDFLAGS = -lm -ldl -pthread |
---|
11 | |
---|
12 | COBJS = sqlite3.o |
---|
13 | CHEADERS = src/sqlite3.h |
---|
14 | |
---|
15 | $(COBJS) : %.o : src/%.c $(CHEADERS) |
---|
16 | $(cc) -c $< -o $@ |
---|
17 | |
---|
18 | |
---|
19 | $(TESTS) : % : src/main_%.c $(COBJS) |
---|
20 | $(cc) $(CFLAGS) $(COBJS) $(LDFLAGS) $< -o $@ |
---|
21 | |
---|
22 | |
---|
23 | clean: |
---|
24 | rm -rf *.o $(TESTS) |
---|
25 | |
---|