-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMAKEFILE
More file actions
43 lines (36 loc) · 680 Bytes
/
MAKEFILE
File metadata and controls
43 lines (36 loc) · 680 Bytes
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
!include MAKEFILE.LOC
# compiler
CC=$(TCCDIR)\bin\tcc.exe
CFLAGS=-1 -mc -g3 -j3 -G -d -O2 -Z -I$(TCCDIR)\include -Isrc -Isrc\lib -Isrc\game
# linker
TL=$(TCCDIR)\bin\tlink
# all objects
OBJS=\
ui_kbd.obj \
ui_vga.obj \
vga_img.obj \
anim.obj \
gobj.obj \
main.obj
# default rule
start.exe: $(OBJS)
$(TL) /L$(TCCDIR)\lib /x @&&!
c0c $(OBJS)
$*
$*
cc
!
# implicit rules to compile sources
{src}.c.obj:
$(CC) $(CFLAGS) -c $<
{src\lib}.c.obj:
$(CC) $(CFLAGS) -c $<
{src\game}.c.obj:
$(CC) $(CFLAGS) -c $<
# clean obj files
clean:
del *.obj
# convert assets
assets:
$(BMPCNV) assets\deadbeef.bmp deadbeef.my
$(BMPCNV) assets\tiles.bmp tiles.my