sewardj | 20e56c1 | 2004-03-31 22:08:37 +0000 | [diff] [blame] | 1 | |
sewardj | c97096c | 2004-06-30 09:28:04 +0000 | [diff] [blame] | 2 | INCLUDES = include/arena.h \ |
3 | include/basictypes.h include/ir_defs.h \ | ||||
4 | include/host_regs.h include/x86h_defs.h | ||||
sewardj | 5cf515f | 2004-06-26 20:10:35 +0000 | [diff] [blame] | 5 | |
sewardj | e3d0d2e | 2004-06-27 10:42:44 +0000 | [diff] [blame] | 6 | ##OBJS = basictypes.o ir_defs.o arena.o linker.o dispatch.o |
sewardj | c97096c | 2004-06-30 09:28:04 +0000 | [diff] [blame] | 7 | OBJS = basictypes.o ir_defs.o host_regs.o \ |
sewardj | b3d4ce7 | 2004-07-02 07:09:23 +0000 | [diff] [blame] | 8 | x86h_defs.o isel_x86.o reg_alloc.o test_main.o |
sewardj | 5cf515f | 2004-06-26 20:10:35 +0000 | [diff] [blame] | 9 | |
sewardj | 4c581e8 | 2004-07-02 13:44:36 +0000 | [diff] [blame] | 10 | GCC = gcc341 |
11 | ##GCC = gcc | ||||
12 | CC_OPTS = -g -Wall -Wshadow -Iinclude | ||||
sewardj | 5cf515f | 2004-06-26 20:10:35 +0000 | [diff] [blame] | 13 | |
14 | all: $(OBJS) | ||||
sewardj | 4c581e8 | 2004-07-02 13:44:36 +0000 | [diff] [blame] | 15 | $(GCC) $(CC_OPTS) -o vex $(OBJS) |
sewardj | 5cf515f | 2004-06-26 20:10:35 +0000 | [diff] [blame] | 16 | |
17 | clean: | ||||
18 | rm -f *.o vex | ||||
19 | |||||
20 | basictypes.o: basictypes.c $(INCLUDES) | ||||
sewardj | 4c581e8 | 2004-07-02 13:44:36 +0000 | [diff] [blame] | 21 | $(GCC) $(CC_OPTS) -c basictypes.c |
sewardj | e3d0d2e | 2004-06-27 10:42:44 +0000 | [diff] [blame] | 22 | ir_defs.o: ir_defs.c $(INCLUDES) |
sewardj | 4c581e8 | 2004-07-02 13:44:36 +0000 | [diff] [blame] | 23 | $(GCC) $(CC_OPTS) -c ir_defs.c |
sewardj | c97096c | 2004-06-30 09:28:04 +0000 | [diff] [blame] | 24 | host_regs.o: host_regs.c $(INCLUDES) |
sewardj | 4c581e8 | 2004-07-02 13:44:36 +0000 | [diff] [blame] | 25 | $(GCC) $(CC_OPTS) -c host_regs.c |
sewardj | c97096c | 2004-06-30 09:28:04 +0000 | [diff] [blame] | 26 | x86h_defs.o: x86h_defs.c $(INCLUDES) |
sewardj | 4c581e8 | 2004-07-02 13:44:36 +0000 | [diff] [blame] | 27 | $(GCC) $(CC_OPTS) -c x86h_defs.c |
sewardj | c97096c | 2004-06-30 09:28:04 +0000 | [diff] [blame] | 28 | isel_x86.o: isel_x86.c $(INCLUDES) |
sewardj | 4c581e8 | 2004-07-02 13:44:36 +0000 | [diff] [blame] | 29 | $(GCC) $(CC_OPTS) -c isel_x86.c |
sewardj | b3d4ce7 | 2004-07-02 07:09:23 +0000 | [diff] [blame] | 30 | reg_alloc.o: reg_alloc.c $(INCLUDES) |
sewardj | 4c581e8 | 2004-07-02 13:44:36 +0000 | [diff] [blame] | 31 | $(GCC) $(CC_OPTS) -c reg_alloc.c |
sewardj | 5cf515f | 2004-06-26 20:10:35 +0000 | [diff] [blame] | 32 | arena.o: arena.c $(INCLUDES) |
sewardj | 4c581e8 | 2004-07-02 13:44:36 +0000 | [diff] [blame] | 33 | $(GCC) $(CC_OPTS) -c arena.c |
sewardj | 5cf515f | 2004-06-26 20:10:35 +0000 | [diff] [blame] | 34 | linker.o: linker.c $(INCLUDES) |
sewardj | 4c581e8 | 2004-07-02 13:44:36 +0000 | [diff] [blame] | 35 | $(GCC) $(CC_OPTS) -c linker.c |
sewardj | 5cf515f | 2004-06-26 20:10:35 +0000 | [diff] [blame] | 36 | dispatch.o: dispatch.c $(INCLUDES) |
sewardj | 4c581e8 | 2004-07-02 13:44:36 +0000 | [diff] [blame] | 37 | $(GCC) $(CC_OPTS) -c dispatch.c |
sewardj | 5cf515f | 2004-06-26 20:10:35 +0000 | [diff] [blame] | 38 | |
sewardj | c97096c | 2004-06-30 09:28:04 +0000 | [diff] [blame] | 39 | test_main.o: test_main.c $(INCLUDES) |
sewardj | 4c581e8 | 2004-07-02 13:44:36 +0000 | [diff] [blame] | 40 | $(GCC) $(CC_OPTS) -c test_main.c |
sewardj | c97096c | 2004-06-30 09:28:04 +0000 | [diff] [blame] | 41 | |
sewardj | 96b2239 | 2004-06-26 18:46:47 +0000 | [diff] [blame] | 42 |