summaryrefslogtreecommitdiff
path: root/asmrun/Makefile.nt
blob: 67247f8ca5759bd9e19444009f6e0f2118eb66c9 (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
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
!include ..\config\Makefile.nt

CC=$(NATIVECC)
CFLAGS=-I..\byterun -DNATIVE_CODE -DTARGET_$(ARCH) -DSYS_$(SYSTEM) $(NATIVECCCOMPOPTS)

COBJS=startup.obj main.obj fail.obj roots.obj signals.obj \
  misc.obj freelist.obj major_gc.obj minor_gc.obj memory.obj alloc.obj \
  compare.obj ints.obj floats.obj str.obj array.obj io.obj extern.obj \
  intern.obj hash.obj sys.obj parsing.obj gc_ctrl.obj terminfo.obj \
  md5.obj obj.obj lexing.obj wincmdline.obj printexc.obj callback.obj \
  weak.obj compact.obj

ASMOBJS=$(ARCH)nt.obj

OBJS=$(COBJS) $(ASMOBJS)

all: libasmrun.lib

libasmrun.lib: $(OBJS)
	rm -f libasmrun.lib
	$(MKLIB)libasmrun.lib $(OBJS)

install:
	cp libasmrun.lib $(LIBDIR)

main.c: ../byterun/main.c
	cp ../byterun/main.c main.c
misc.c: ../byterun/misc.c
	cp ../byterun/misc.c misc.c
freelist.c: ../byterun/freelist.c
	cp ../byterun/freelist.c freelist.c
major_gc.c: ../byterun/major_gc.c
	cp ../byterun/major_gc.c major_gc.c
minor_gc.c: ../byterun/minor_gc.c
	cp ../byterun/minor_gc.c minor_gc.c
memory.c: ../byterun/memory.c
	cp ../byterun/memory.c memory.c
alloc.c: ../byterun/alloc.c
	cp ../byterun/alloc.c alloc.c
array.c: ../byterun/array.c
	cp ../byterun/array.c array.c
compare.c: ../byterun/compare.c
	cp ../byterun/compare.c compare.c
ints.c: ../byterun/ints.c
	cp ../byterun/ints.c ints.c
floats.c: ../byterun/floats.c
	cp ../byterun/floats.c floats.c
str.c: ../byterun/str.c
	cp ../byterun/str.c str.c
io.c: ../byterun/io.c
	cp ../byterun/io.c io.c
extern.c: ../byterun/extern.c
	cp ../byterun/extern.c extern.c
intern.c: ../byterun/intern.c
	cp ../byterun/intern.c intern.c
hash.c: ../byterun/hash.c
	cp ../byterun/hash.c hash.c
sys.c: ../byterun/sys.c
	cp ../byterun/sys.c sys.c
parsing.c: ../byterun/parsing.c
	cp ../byterun/parsing.c parsing.c
gc_ctrl.c: ../byterun/gc_ctrl.c
	cp ../byterun/gc_ctrl.c gc_ctrl.c
terminfo.c: ../byterun/terminfo.c
	cp ../byterun/terminfo.c terminfo.c
md5.c: ../byterun/md5.c
	cp ../byterun/md5.c md5.c
obj.c: ../byterun/obj.c
	cp ../byterun/obj.c obj.c
lexing.c: ../byterun/lexing.c
	cp ../byterun/lexing.c lexing.c
printexc.c: ../byterun/printexc.c
	cp ../byterun/printexc.c printexc.c
callback.c: ../byterun/callback.c
	cp ../byterun/callback.c callback.c
weak.c: ../byterun/weak.c
	cp ../byterun/weak.c weak.c
compact.c: ../byterun/compact.c
	cp ../byterun/compact.c compact.c
meta.c: ../byterun/meta.c
	cp ../byterun/meta.c meta.c

LINKEDFILES=misc.c freelist.c major_gc.c minor_gc.c memory.c alloc.c array.c \
  compare.c ints.c floats.c str.c io.c extern.c intern.c hash.c sys.c \
  parsing.c gc_ctrl.c terminfo.c md5.c obj.c lexing.c printexc.c callback.c \
  weak.c compact.c meta.c

wincmdline.obj: ../byterun/wincmdline.c
	$(CC) /c $(NATIVECCCOMPOPTS) ..\byterun\wincmdline.c

clean::
	rm -f $(LINKEDFILES)

clean::
	rm -f *.obj *.lib *~

depend:
	sed -e "s/\.o/.obj/g" .depend > .depend.nt

!include .depend.nt