-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
45 lines (28 loc) · 1021 Bytes
/
Makefile
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
# Probe our compiler's builtin defines for WIN32 macro
WIN32 := $(shell $(CC) -E -dM - </dev/null |grep WIN32)
ifneq ($(WIN32),)
$(info Target: Win32)
SYS_OBJS := console_win32.o
else
$(info Defaulting to UNIX target)
SYS_OBJS := console.o
endif
all: centurion
CFLAGS = -g3 -Wall -pedantic
centurion: centurion.o cpu6.o disassemble.o dsk.o hawk.o math128.o mux.o \
cbin.o cbin_load.o scheduler.o $(SYS_OBJS)
centurion.o: centurion.c centurion.h console.h cpu6.h disassemble.h dma.h \
dsk.h math128.o mux.h scheduler.h
scheduler.o: scheduler.c scheduler.h cpu6.h
console.o : console.c console.h mux.h
console_win32.o : console_win32.c console.h mux.h
cpu6.o : cpu6.c cpu6.h
disassemble.o: disassemble.c disassemble.h cpu6.h
dsk.o: dsk.c dsk.h hawk.h dma.h scheduler.h cpu6.h
hawk.o: hawk.c hawk.h scheduler.h
cbin.o: cbin.h
cbin_load.o: cpu6.h cbin.h
math128.o: math128.h
mux.o : centurion.h mux.h console.h cpu6.h scheduler.h trace.h
clean:
rm -f centurion *.o *~