]> 4ch.mooo.com Git - 16.git/blob - 16/modex/demos/c/makefile
16_ca needs huge amounts of work and I should remember what needs to be done soon...
[16.git] / 16 / modex / demos / c / makefile
1 !ifdef __LINUX__
2 REMOVECOMMAND=rm -f
3 COPYCOMMAND=cp -f
4 DIRSEP=/
5 OBJ=o
6 !else
7 REMOVECOMMAND=del
8 COPYCOMMAND=copy /y
9 DIRSEP=\
10 OBJ=obj
11 !endif
12
13 CFLAGS=-d2 -0 -mc
14
15 all: x-demo.exe
16
17 x-demo.exe: x-demo.$(OBJ) modex.$(OBJ) c_utils.$(OBJ)
18         wcl $(CFLAGS) x-demo.$(OBJ) modex.$(OBJ) c_utils.$(OBJ)
19 x-demo.$(OBJ): x-demo.c
20         wcl -c $(CFLAGS) x-demo.c
21
22 c_utils.$(OBJ): c_utils.asm
23         wcl -c $(CFLAGS) c_utils.asm
24 modex.$(OBJ): modex.asm
25         wcl -c $(CFLAGS) modex.asm
26
27 clean: .symbolic
28         @$(REMOVECOMMAND) x-demo.exe
29         @$(REMOVECOMMAND) *.$(OBJ)
30         @$(REMOVECOMMAND) *.err