-
Notifications
You must be signed in to change notification settings - Fork 3
/
MAKEFILE.DJ
73 lines (53 loc) · 1.27 KB
/
MAKEFILE.DJ
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
#
# JUDAS library makefile for DJGPP v2.0
#
# note : nasm compiles for coff output :
# nasm jasmdj.asm -ddjgpp -fcoff -E!nasm.err
# rem nasm jasmdj.asm -dwatcom -fobj -E!nasm.err
#
CC = gcc
AS = nasm
AR = ar
RANLIB = ranlib
STRIP = strip
COFF2EXE = stubify
AFLAGS = -ddjgpp -fcoff
#Warning: -O1/O2/O3 optimize will generate invalid code with GCC > 4.0.1
CFLAGS = -g -c -Wall -Wno-unused -Wno-pointer-sign -march=pentium -Os
LFLAGS = -g
OBJS = judas.o judassmp.o judasraw.o judaswav.o judasio.o \
judasmem.o judastbl.o judasxm.o judasmod.o judass3m.o \
judasdma.o jasmdj.o
LIB = judaslib.a
all : $(LIB) clean
@echo done.
#make the judas sound library
$(LIB) : $(OBJS)
@$(AR) rc $(LIB) $(OBJS)
$(RANLIB) $(LIB)
judas.o : judas.c
$(CC) $(CFLAGS) $<
judassmp.o : judassmp.c
$(CC) $(CFLAGS) $<
judasraw.o : judasraw.c
$(CC) $(CFLAGS) $<
judaswav.o : judaswav.c
$(CC) $(CFLAGS) $<
judasio.o : judasio.c
$(CC) $(CFLAGS) $<
judasmem.o : judasmem.c
$(CC) $(CFLAGS) $<
judastbl.o : judastbl.c
$(CC) $(CFLAGS) $<
judasxm.o : judasxm.c
$(CC) $(CFLAGS) $<
judasmod.o : judasmod.c
$(CC) $(CFLAGS) $<
judass3m.o : judass3m.c
$(CC) $(CFLAGS) $<
judasdma.o : judasdma.c
$(CC) $(CFLAGS) $<
jasmdj.o : jasmdj.asm
$(AS) $(AFLAGS) $<
clean :
@if exist *.o del *.o > nul