-
Notifications
You must be signed in to change notification settings - Fork 3
/
ANAL.DJ
49 lines (38 loc) · 859 Bytes
/
ANAL.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
#
# JUDAS library examples 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
CFLAGS = -g -c -Wall -Wno-pointer-sign -march=pentium -O2
LFLAGS = -g
OBJS = anal.o timer.o timerasm.o kbd.o kbdasm.o
LIB = judaslib.a
all : anal.exe clean
@echo done.
# make the ANAL INVADERS game anal.exe
anal.exe : $(OBJS) $(LIB)
$(CC) -o anal $(OBJS) $(LIB) $(LFLAGS)
# $(STRIP) anal
$(COFF2EXE) anal
@del anal > nul
anal.o : anal.c
$(CC) $(CFLAGS) $<
timer.o : timer.c
$(CC) $(CFLAGS) $<
timerasm.o : timerasm.asm
$(AS) $(AFLAGS) $<
kbd.o : kbd.c
$(CC) $(CFLAGS) $<
kbdasm.o : kbdasm.asm
$(AS) $(AFLAGS) $<
clean :
@if exist *.o del *.o > nul