projects
/
dosdemo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
con.fmt caused problems in dos. renamed to console.fnt
[dosdemo]
/
Makefile.dj
diff --git
a/Makefile.dj
b/Makefile.dj
index
9306382
..
af00af7
100644
(file)
--- a/
Makefile.dj
+++ b/
Makefile.dj
@@
-4,6
+4,8
@@
obj = $(src:.c=.cof) $(asmsrc:.asm=.cof)
dep = $(obj:.cof=.dep)
bin = demo.exe
dep = $(obj:.cof=.dep)
bin = demo.exe
+asmsrc += cspr/dbgfont.asm cspr/confont.asm
+
ifeq ($(findstring COMMAND.COM, $(SHELL)), COMMAND.COM)
hostsys = dos
else
ifeq ($(findstring COMMAND.COM, $(SHELL)), COMMAND.COM)
hostsys = dos
else
@@
-21,6
+23,11
@@
AR = $(TOOLPREFIX)ar
CFLAGS = $(warn) -march=pentium $(dbg) $(opt) $(inc)
LDFLAGS = libs/imago/imago.dja libs/anim/anim.dja libs/mikmod/dos/libmikmod.a
CFLAGS = $(warn) -march=pentium $(dbg) $(opt) $(inc)
LDFLAGS = libs/imago/imago.dja libs/anim/anim.dja libs/mikmod/dos/libmikmod.a
+ifneq ($(hostsys), dos)
+.PHONY: all
+all: data $(bin)
+endif
+
$(bin): $(obj) imago anim mikmod
$(CC) -o $@ -Wl,-Map=ld.map $(obj) $(LDFLAGS)
$(bin): $(obj) imago anim mikmod
$(CC) -o $@ -Wl,-Map=ld.map $(obj) $(LDFLAGS)
@@
-74,4
+81,8
@@
clean:
cleandep:
rm -f $(dep)
cleandep:
rm -f $(dep)
+
+.PHONY: data
+data:
+ @tools/procdata
endif
endif