sewardj | 20e56c1 | 2004-03-31 22:08:37 +0000 | [diff] [blame] | 1 | |
sewardj | 887a11a | 2004-07-05 17:26:47 +0000 | [diff] [blame] | 2 | PUB_HEADERS = pub/libvex_basictypes.h \ |
| 3 | pub/libvex_ir.h \ |
| 4 | pub/libvex.h |
sewardj | 5cf515f | 2004-06-26 20:10:35 +0000 | [diff] [blame] | 5 | |
sewardj | 8af36f1 | 2004-07-21 18:53:20 +0000 | [diff] [blame] | 6 | PRIV_HEADERS = priv/host-x86/x86host_defs.h \ |
sewardj | 35421a3 | 2004-07-05 13:12:34 +0000 | [diff] [blame] | 7 | priv/host-generic/host_regs.h \ |
sewardj | 887a11a | 2004-07-05 17:26:47 +0000 | [diff] [blame] | 8 | priv/main/vex_globals.h \ |
sewardj | c9a6570 | 2004-07-07 16:32:57 +0000 | [diff] [blame] | 9 | priv/main/vex_util.h \ |
| 10 | priv/guest-x86/x86guest_defs.h |
sewardj | 5cf515f | 2004-06-26 20:10:35 +0000 | [diff] [blame] | 11 | |
sewardj | c9a6570 | 2004-07-07 16:32:57 +0000 | [diff] [blame] | 12 | LIB_OBJS = priv/ir/ir_defs.o \ |
sewardj | 887a11a | 2004-07-05 17:26:47 +0000 | [diff] [blame] | 13 | priv/main/vex_main.o \ |
| 14 | priv/main/vex_globals.o \ |
sewardj | 35421a3 | 2004-07-05 13:12:34 +0000 | [diff] [blame] | 15 | priv/main/vex_util.o \ |
sewardj | 8af36f1 | 2004-07-21 18:53:20 +0000 | [diff] [blame] | 16 | priv/host-x86/x86host_defs.o \ |
sewardj | ac9af02 | 2004-07-05 01:15:34 +0000 | [diff] [blame] | 17 | priv/host-x86/isel_x86.o \ |
| 18 | priv/host-generic/host_regs.o \ |
sewardj | c9a6570 | 2004-07-07 16:32:57 +0000 | [diff] [blame] | 19 | priv/host-generic/reg_alloc.o \ |
| 20 | priv/guest-x86/x86toIR.o |
sewardj | 5cf515f | 2004-06-26 20:10:35 +0000 | [diff] [blame] | 21 | |
sewardj | ac9af02 | 2004-07-05 01:15:34 +0000 | [diff] [blame] | 22 | PUB_INCLUDES = -Ipub |
| 23 | |
sewardj | c9a6570 | 2004-07-07 16:32:57 +0000 | [diff] [blame] | 24 | PRIV_INCLUDES = -Ipriv/ir -Ipriv/main -Ipriv/host-generic \ |
| 25 | -Ipriv/host-x86 -Ipriv/guest-x86 |
sewardj | ac9af02 | 2004-07-05 01:15:34 +0000 | [diff] [blame] | 26 | |
| 27 | APP_OBJS = test_main.o |
| 28 | |
| 29 | |
sewardj | e05c42c | 2004-07-08 20:25:10 +0000 | [diff] [blame] | 30 | CC = gcc341 |
sewardj | ea64e14 | 2004-07-22 16:47:21 +0000 | [diff] [blame^] | 31 | CCFLAGS = -g -Wall -Wshadow |
sewardj | 41f43bc | 2004-07-08 14:23:22 +0000 | [diff] [blame] | 32 | |
sewardj | e05c42c | 2004-07-08 20:25:10 +0000 | [diff] [blame] | 33 | #CC = icc |
| 34 | #CCFLAGS = -g -Wbrief -Wall -wd981 -wd279 -wd1287 -wd869 \ |
| 35 | # -wd810 -wd1419 -wd181 -wd111 -wd167 |
sewardj | 41f43bc | 2004-07-08 14:23:22 +0000 | [diff] [blame] | 36 | # 981: operands are evaluated in unspecified order |
| 37 | # 279: controlling expression is constant |
| 38 | # 1287: invalid attribute for parameter |
| 39 | # 869: parameter "..." was never referenced |
| 40 | # 810: conversion from "int" to "Char={char}" may lose significant bits |
| 41 | # 181: argument is incompatible with corresponding format string conversion |
| 42 | # 111: statement is unreachable |
| 43 | # 167: argument of type unsigned char incompatible with formal of type char |
sewardj | e05c42c | 2004-07-08 20:25:10 +0000 | [diff] [blame] | 44 | # (the above are for icc 8.0 -- 8.0.0.55 I think) |
sewardj | ac9af02 | 2004-07-05 01:15:34 +0000 | [diff] [blame] | 45 | |
sewardj | 887a11a | 2004-07-05 17:26:47 +0000 | [diff] [blame] | 46 | all: libvex.a $(APP_OBJS) |
| 47 | $(CC) $(CCFLAGS) -o vex $(APP_OBJS) libvex.a |
sewardj | ac9af02 | 2004-07-05 01:15:34 +0000 | [diff] [blame] | 48 | |
sewardj | 887a11a | 2004-07-05 17:26:47 +0000 | [diff] [blame] | 49 | libvex.a: $(LIB_OBJS) |
| 50 | rm -f libvex.a |
| 51 | ar clq libvex.a $(LIB_OBJS) |
sewardj | ac9af02 | 2004-07-05 01:15:34 +0000 | [diff] [blame] | 52 | |
sewardj | 5cf515f | 2004-06-26 20:10:35 +0000 | [diff] [blame] | 53 | clean: |
sewardj | 887a11a | 2004-07-05 17:26:47 +0000 | [diff] [blame] | 54 | rm -f $(APP_OBJS) $(LIB_OBJS) libvex.a vex |
sewardj | 5cf515f | 2004-06-26 20:10:35 +0000 | [diff] [blame] | 55 | |
sewardj | c97096c | 2004-06-30 09:28:04 +0000 | [diff] [blame] | 56 | |
sewardj | ce605f9 | 2004-07-05 14:39:15 +0000 | [diff] [blame] | 57 | |
| 58 | |
sewardj | 35421a3 | 2004-07-05 13:12:34 +0000 | [diff] [blame] | 59 | ALL_HEADERS = $(PUB_HEADERS) $(PRIV_HEADERS) |
| 60 | ALL_INCLUDES = $(PUB_INCLUDES) $(PRIV_INCLUDES) |
| 61 | |
sewardj | ce605f9 | 2004-07-05 14:39:15 +0000 | [diff] [blame] | 62 | test_main.o: $(PUB_HEADERS) test_main.c |
| 63 | $(CC) $(CCFLAGS) $(PUB_INCLUDES) -o test_main.o \ |
| 64 | -c test_main.c |
| 65 | |
sewardj | 35421a3 | 2004-07-05 13:12:34 +0000 | [diff] [blame] | 66 | priv/ir/ir_defs.o: $(ALL_HEADERS) priv/ir/ir_defs.c |
| 67 | $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/ir/ir_defs.o \ |
| 68 | -c priv/ir/ir_defs.c |
| 69 | |
sewardj | 887a11a | 2004-07-05 17:26:47 +0000 | [diff] [blame] | 70 | priv/main/vex_main.o: $(ALL_HEADERS) priv/main/vex_main.c |
| 71 | $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/main/vex_main.o \ |
| 72 | -c priv/main/vex_main.c |
sewardj | 35421a3 | 2004-07-05 13:12:34 +0000 | [diff] [blame] | 73 | |
sewardj | 887a11a | 2004-07-05 17:26:47 +0000 | [diff] [blame] | 74 | priv/main/vex_globals.o: $(ALL_HEADERS) priv/main/vex_globals.c |
| 75 | $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/main/vex_globals.o \ |
| 76 | -c priv/main/vex_globals.c |
sewardj | 35421a3 | 2004-07-05 13:12:34 +0000 | [diff] [blame] | 77 | |
| 78 | priv/main/vex_util.o: $(ALL_HEADERS) priv/main/vex_util.c |
| 79 | $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/main/vex_util.o \ |
| 80 | -c priv/main/vex_util.c |
| 81 | |
sewardj | 8af36f1 | 2004-07-21 18:53:20 +0000 | [diff] [blame] | 82 | priv/host-x86/x86host_defs.o: $(ALL_HEADERS) priv/host-x86/x86host_defs.c |
| 83 | $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host-x86/x86host_defs.o \ |
| 84 | -c priv/host-x86/x86host_defs.c |
sewardj | 35421a3 | 2004-07-05 13:12:34 +0000 | [diff] [blame] | 85 | |
| 86 | priv/host-x86/isel_x86.o: $(ALL_HEADERS) priv/host-x86/isel_x86.c |
| 87 | $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host-x86/isel_x86.o \ |
| 88 | -c priv/host-x86/isel_x86.c |
| 89 | |
| 90 | priv/host-generic/host_regs.o: $(ALL_HEADERS) priv/host-generic/host_regs.c |
| 91 | $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host-generic/host_regs.o \ |
| 92 | -c priv/host-generic/host_regs.c |
| 93 | |
| 94 | priv/host-generic/reg_alloc.o: $(ALL_HEADERS) priv/host-generic/reg_alloc.c |
| 95 | $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host-generic/reg_alloc.o \ |
| 96 | -c priv/host-generic/reg_alloc.c |
sewardj | 96b2239 | 2004-06-26 18:46:47 +0000 | [diff] [blame] | 97 | |
sewardj | c9a6570 | 2004-07-07 16:32:57 +0000 | [diff] [blame] | 98 | priv/guest-x86/x86toIR.o: $(ALL_HEADERS) priv/guest-x86/x86toIR.c |
| 99 | $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/guest-x86/x86toIR.o \ |
| 100 | -c priv/guest-x86/x86toIR.c |