46 lines
834 B
Plaintext
46 lines
834 B
Plaintext
|
PROJ =CHRTDEMO
|
||
|
DEBUG =1
|
||
|
CC =qcl
|
||
|
AS =masm
|
||
|
CFLAGS_G = /AS /W1 /Ze
|
||
|
CFLAGS_D = /Zi /Zr /Gi$(PROJ).mdt /Od
|
||
|
CFLAGS_R = /O /Ot /DNDEBUG
|
||
|
CFLAGS =$(CFLAGS_G) $(CFLAGS_D)
|
||
|
AFLAGS_G =/Cx /P1
|
||
|
AFLAGS_D =/Zi
|
||
|
AFLAGS_R =/DNDEBUG
|
||
|
AFLAGS =$(AFLAGS_G) $(AFLAGS_D)
|
||
|
LFLAGS_G = /CP:0xfff /NOI /SE:0x80 /ST:0x800
|
||
|
LFLAGS_D = /CO
|
||
|
LFLAGS_R =
|
||
|
LFLAGS =$(LFLAGS_G) $(LFLAGS_D)
|
||
|
RUNFLAGS =
|
||
|
OBJS_EXT =
|
||
|
LIBS_EXT =
|
||
|
|
||
|
.asm.obj: ; $(AS) $(AFLAGS) -c $*.asm
|
||
|
|
||
|
all: $(PROJ).EXE
|
||
|
|
||
|
chrtdemo.obj: chrtdemo.c
|
||
|
|
||
|
chrtopt.obj: chrtopt.c
|
||
|
|
||
|
chrtsupt.obj: chrtsupt.c
|
||
|
|
||
|
$(PROJ).EXE: chrtdemo.obj chrtopt.obj chrtsupt.obj $(OBJS_EXT)
|
||
|
echo >NUL @<<$(PROJ).crf
|
||
|
chrtdemo.obj +
|
||
|
chrtopt.obj +
|
||
|
chrtsupt.obj +
|
||
|
$(OBJS_EXT)
|
||
|
$(PROJ).EXE
|
||
|
|
||
|
$(LIBS_EXT);
|
||
|
<<
|
||
|
ilink -a -e "link $(LFLAGS) @$(PROJ).crf" $(PROJ)
|
||
|
|
||
|
run: $(PROJ).EXE
|
||
|
$(PROJ) $(RUNFLAGS)
|
||
|
|