-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
65 lines (36 loc) · 1.27 KB
/
Makefile
File metadata and controls
65 lines (36 loc) · 1.27 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# vim: ft=make noexpandtab
#WING := 1
RETROFLAT_DOS_MEM_LARGE := 1
C_FILES := src/main.c src/ui.c src/grid.c
GLOBAL_DEFINES := -DRETROFLAT_DEFAULT_SCREEN_W=640 -DRETROFLAT_DEFAULT_SCREEN_H=480 -Isrc
LDFLAGS_GCC_UNIX := -ldl
PLUGIN_DEFINES := -DDEBUG_LOG -DDEBUG_THRESHOLD=1 -DPERPIX_PLUGIN -DMAUG_NO_RETRO -DMFMT_TRACE_BMP_LVL=1
C_MPLUG_OVLS := plugins/bmp.c
include maug/Makefile.inc
# Target-specific options.
.PHONY: clean
all: perpix.$(MAUG_UNIX).ale perpix.$(MAUG_UNIX).sdl perpixd.exe perpixw.exe perpixnt.exe perpix.html perpix_bmp.$(MAUG_UNIX).so perpix_ico.$(MAUG_UNIX).so
# Unix (Allegro)
$(eval $(call TGTUNIXALE,perpix))
# Unix (SDL)
$(eval $(call TGTUNIXSDL,perpix))
# WASM
$(eval $(call TGTWASMSDL,perpix))
# DOS
$(eval $(call TGTDOSALE,perpix))
$(eval $(call TGTDOSBIOS,perpix))
$(eval $(call TGTDOSGAL,perpix))
# WinNT
$(eval $(call TGTWINNT,perpix))
$(eval $(call TGTWINSDL,perpix))
# Win386
$(eval $(call TGTWIN16,perpix))
$(eval $(call TGTWIN386,perpix))
# Plugins
$(eval $(call TGT_WATCOM_WIN32_PLUG,perpix_bmp,plugins/bmp.c))
$(eval $(call TGT_WATCOM_WIN32_PLUG,perpix_ico,plugins/ico.c))
$(eval $(call TGT_GCC_UNIX_PLUG,perpix_bmp,plugins/bmp.c))
$(eval $(call TGT_GCC_UNIX_PLUG,perpix_ico,plugins/ico.c))
# Clean
clean:
rm -rf $(CLEAN_TARGETS)