-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
38 lines (28 loc) · 922 Bytes
/
Makefile
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
ASM = main.asm util.asm paint.asm button.asm enemy.asm collision.asm mapblock.asm projectile.asm prefab.asm statusbar.asm
OBJ = main.obj util.obj paint.obj button.obj enemy.obj collision.obj mapblock.obj projectile.obj prefab.obj statusbar.obj
RCM = rclist.rcm
RCINC = rclist.inc
RC = rclist.rc
RES = rclist.res
EXE = StartGame.exe
EX_LIB = kernel32.lib gdi32.lib user32.lib msvcrt.lib msimg32.lib
ML = $(MASM)\bin\ml.exe
LINK = $(MASM)\bin\link.exe
RC_E = $(MASM)\bin\rc.exe
LINK_FLAG = /subsystem:console /LIBPATH:$(IRVINE) /LIBPATH:$(MASM)\lib
ML_FLAG = /c /coff /I$(MASM)/include /Zi
$(EXE): $(OBJ) $(RES)
$(LINK) $(LINK_FLAG) $(OBJ) $(RES) $(EX_LIB) /out:$(EXE)
del $(OBJ)
del $(RES)
@echo [SUCCESS]
$(OBJ): $(ASM) $(RCINC)
$(ML) $(ML_FLAG) $(ASM)
$(RC) $(RCINC): $(RCM)
rcmake.exe $(RCM)
$(RES): $(RC)
$(RC_E) $(RC)
del $(RC)
clean:
del $(EXE)
del $(RCINC)