File: Makefile.dos

package info (click to toggle)
xspectemu 0.94-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,176 kB
  • ctags: 3,073
  • sloc: ansic: 15,394; asm: 5,160; sh: 1,528; cpp: 377; makefile: 186
file content (104 lines) | stat: -rw-r--r-- 2,059 bytes parent folder | download | duplicates (13)
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
CC = gcc
CPP = $(CC) -E
CFLAGS = -Wall -O2 -funroll-loops
CPPFLAGS = -DHAVE_CONFIG_H
LDFLAGS = 

vgalib = -lkb -lalleg

.SUFFIXES:
.SUFFIXES: .c .o .s

.c.o:
	$(CC) -c $(CFLAGS) $(CPPFLAGS) $<

.c.s:
	$(CC) -S $(CFLAGS) $(CPPFLAGS) $<

progs = vgaspect

all: $(progs)

install: all

z80_c_objs=z80.o z80optab.o z80_step.o spperif.o spect.o rom_imag.o \
           z80_op1.o z80_op2.o z80_op3.o z80_op4.o z80_op5.o z80_op6.o

z80_i386_objs=z80.o spperif.o rom_imag.o i386emul.o

spect_objs=spmain.o spscr.o spkey.o spsound.o sptape.o tapefile.o \
           snapshot.o compr.o sptiming.o interf.o misc.o spconf.o \
           loadim.o keynames.o $(z80_i386_objs)

vgaspect_objs=vgaspect.o vgascr.o vgakey.o  $(spect_objs)
vgaspect: $(vgaspect_objs)
	$(CC) -o vgaspect $(LDFLAGS) $(vgaspect_objs) $(vgalib)


speedt_objs=speedt.o $(@z80objs@)
speedt: $(speedt_objs)
	$(CC) -o speedt $(LDFLAGS) $(speedt_objs)

i386emul.sp: i386step.S
	$(CPP) $(CPPFLAGS) i386step.S > i386emul.sp

i386emul.s: i386emul.sp sp_to_s
	./sp_to_s < i386emul.sp > i386emul.s

i386emul.o: i386emul.s
	$(CC) -c $(CFLAGS) i386emul.s

rom_imag.c: rom bin_to_c
	./bin_to_c rom rom_imag

loadim.c: loadim.z80 bin_to_c
	./bin_to_c loadim.z80 loadim

spectkey.c: spectkey.srl bin_to_c
	./bin_to_c spectkey.srl spectkey

sp_to_s: sp_to_s.o
	$(CC) -o sp_to_s $(LDFLAGS) sp_to_s.o

bin_to_c: bin_to_c.o
	$(CC) -o bin_to_c $(LDFLAGS) bin_to_c.o

distclean:
	del *.o 
	del *.sp 
	del *.exe
	del i386emul.s 
	del rom_imag.c 
	del spectkey.c
	del loadim.c
	del bin_to_c 
	del sp_to_s 
	del Makefile.old

dist:	distclean
	strip xspect
	strip vgaspect

clean: distclean
	del *.exe
	del vgaspect 
	del speedt

realclean: clean
	del Makefile 
	del config.h

depend:
	copy Makefile Makefile.old
	copy Makefile.dos Makefile
	gcc -MM $(CPPFLAGS) *.c >> Makefile


i386emul.sp: i386def.S i386sp.S i386step.S 
i386emul.sp: i386op1.S i386op1x.S i386op2.S i386op2x.S
i386emul.sp: i386op3.S i386op3x.S i386op4.S
i386emul.sp: i386op5.S i386op6.S 

FORCE:

# DO NOT REMOVE THIS LINE, OR "make depend" WILL NOT WORK