46 lines
837 B
Makefile
46 lines
837 B
Makefile
PROJ =MATHDEMO
|
|
DEBUG =1
|
|
CC =qcl
|
|
AS =qcl
|
|
CFLAGS_G = /AS /W1 /Ze
|
|
CFLAGS_D = /Zi /Zr /Od
|
|
CFLAGS_R = /O /Ot /DNDEBUG
|
|
CFLAGS =$(CFLAGS_G) $(CFLAGS_D)
|
|
AFLAGS_G = /Cx /W1 /P1 /FPi
|
|
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
|
|
|
|
mathdemo.obj: mathdemo.c $(H)
|
|
|
|
math.obj: math.asm $(INC)
|
|
|
|
common.obj: common.asm $(INC)
|
|
|
|
$(PROJ).EXE: mathdemo.obj math.obj common.obj $(OBJS_EXT)
|
|
echo >NUL @<<$(PROJ).crf
|
|
mathdemo.obj +
|
|
math.obj +
|
|
common.obj +
|
|
$(OBJS_EXT)
|
|
$(PROJ).EXE
|
|
|
|
$(LIBS_EXT);
|
|
<<
|
|
ilink -a -e "qlink $(LFLAGS) @$(PROJ).crf" $(PROJ)
|
|
|
|
run: $(PROJ).EXE
|
|
$(PROJ) $(RUNFLAGS)
|
|
|