-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
46 lines (30 loc) · 1.06 KB
/
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
# Makefile for ND100 VM
CC= gcc
#CFLAGS = -ggdb
CFLAGS = -Wall -O3 -pg -fno-aggressive-loop-optimizations
OBJS=cpu.o mon.o decode.o float.o floppy.o io.o rtc.o nd100lib.o nd100em.o
all: nd100em
clean:
rm -f cpu.o mon.o trace.o decode.o float.o floppy.o io.o rtc.o nd100lib.o nd100em.o nd100em core
cpu.o: cpu.c cpu.h nd100.h
$(CC) $(CFLAGS) -c cpu.c
rtc.o: rtc.c rtc.h nd100.h
$(CC) $(CFLAGS) -c rtc.c
trace.o: trace.c trace.h nd100.h
$(CC) $(CFLAGS) -c trace.c
mon.o: mon.c nd100.h mon.h
$(CC) $(CFLAGS) -c mon.c
decode.o: decode.c
$(CC) $(CFLAGS) -c decode.c
float.o: float.c
$(CC) $(CFLAGS) -c float.c
io.o: io.c nd100.h io.h
$(CC) $(CFLAGS) -c io.c
floppy.o: floppy.c
$(CC) $(CFLAGS) -c floppy.c
nd100lib.o: nd100lib.c nd100lib.h nd100.h
$(CC) $(CFLAGS) -c nd100lib.c
nd100em.o: nd100em.c nd100em.h nd100.h
$(CC) $(CFLAGS) -c nd100em.c
nd100em: nd100em.o nd100lib.o cpu.o rtc.o mon.o decode.o float.o floppy.o io.o trace.o
$(CC) $(CFLAGS) -pthread nd100em.o nd100lib.o cpu.o rtc.o mon.o decode.o float.o floppy.o io.o trace.o -lconfig -lm -o nd100em