summaryrefslogtreecommitdiff
path: root/Makefile
blob: 4f234e4c3c7584cfa401d0e018f84733ac837286 (plain)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
PREFIX := /usr/local
BIN_DIR := $(PREFIX)/bin

ifdef PCC
PCC_CFLAGS=-D__float128="long double"
else
PCC_CFLAGS=
endif

CFLAGS = $(PCC_CFLAGS) $(CFLAGS_EXTRA)
OBJS = asmmon.o opcode.o sux.o
OBJ_NAME = cisc-0.2
all : $(OBJS)
	$(CC) $(OBJS) $(CFLAGS) -lpthread -o $(OBJ_NAME)
sux.o :
	$(CC) sux.c -c $(CFLAGS) -o sux.o
opcode.o :
	$(CC) opcode.c -c $(CFLAGS) -o opcode.o
asmmon.o :
	$(CC) asmmon.c -c $(CFLAGS) -o asmmon.o
clean :
	rm -f $(OBJ_NAME) $(OBJS)
install :
	install -D -m755 $(OBJ_NAME) $(BIN_DIR)/$(OBJ_NAME)
uninstall :
	rm -f $(BIN_DIR)/$(OBJ_NAME)