Unify process_alloc() and process_realloc() with PROCESS_ALLOC_MODE_REALLOC bit
[moveable_pool.git] / Makefile
1 CFLAGS=-g -Wall
2 # -D__FUZIX__ -DNDEBUG
3
4 all: pool_test_gen pool_test_run process_test_gen process_test_run mkfs \
5 inode_test_gen inode_test_run
6 #ucp
7
8 pool_test_gen: pool_test_gen.o
9         ${CC} ${CFLAGS} -o $@ $^
10
11 pool_test_gen.o: pool_test_gen.c
12
13 pool_test_run: pool_test_run.o pool.o
14         ${CC} ${CFLAGS} -o $@ $^
15
16 pool_test_run.o: pool_test_run.c pool.h
17 pool.o: pool.c pool.h
18
19 process_test_gen: process_test_gen.o
20         ${CC} ${CFLAGS} -o $@ $^
21
22 process_test_gen.o: process_test_gen.c process_test.h
23
24 process_test_run: process_test_run.o process.o process_test.h core.o swap.o block_pool.o pool.o
25         ${CC} ${CFLAGS} -o $@ $^
26
27 process_test_run.o: process_test_run.c process.h core.h swap.h pool.h fuzix_fs.h util.h
28 process.o: process.c process.h core.h swap.h pool.h fuzix_fs.h
29 core.o: core.c core.h process.h pool.h
30 swap.o: swap.c swap.h process.h pool.h
31 block_pool.o: block_pool.c block_pool.h
32
33 # ucp no longer compiles because many fs routines commented to save space
34 #ucp.o: ucp.c fuzix_fs.h
35 fuzix_fs.o: fuzix_fs.c fuzix_fs.h
36 util.o: util.c fuzix_fs.h
37
38 ucp: ucp.o fuzix_fs.o util.o
39         ${CC} ${CFLAGS} -o $@ $^
40
41 mkfs.o: mkfs.c fuzix_fs.h
42
43 mkfs: mkfs.o util.o
44         ${CC} ${CFLAGS} -o $@ $^
45
46 inode_test_gen: inode_test_gen.o
47         ${CC} ${CFLAGS} -o $@ $^
48
49 inode_test_gen.o: inode_test_gen.c
50
51 inode_test_run: inode_test_run.o fuzix_fs.o util.o
52         ${CC} ${CFLAGS} -o $@ $^
53
54 inode_test_run.o: inode_test_run.c fuzix_fs.h util.h
55
56 clean:
57         rm -f pool_test_gen pool_test_run process_test_gen process_test_run \
58 ucp mkfs inode_test_gen inode_test_run *.o