From e9bc07c12b572a43b66736783c9fa19d24cf645d Mon Sep 17 00:00:00 2001 From: John Tsiombikas Date: Mon, 10 Dec 2018 19:51:42 +0200 Subject: [PATCH 1/1] fixed all the makefiles to build with the new libanim --- Makefile | 10 +++++----- Makefile.dj | 11 ++++++++--- mklibs.bat | 2 +- src/treestor.c | 2 +- 4 files changed, 15 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 4675768..863858d 100644 --- a/Makefile +++ b/Makefile @@ -7,19 +7,19 @@ tinyfps.obj treestor.obj ts_text.obj tunnel.obj util.obj vbe.obj watdpmi.obj bin = demo.exe -libs = imago.lib +libs = imago.lib anim.lib def = -dM_PI=3.141592653589793 opt = -5 -fp5 -otexan -oh -oi -ei dbg = -d1 !ifdef __UNIX__ -incpath = -Isrc -Isrc/dos -Ilibs/imago/src -libpath = libpath libs/imago +incpath = -Isrc -Isrc/dos -Ilibs -Ilibs/imago/src -Ilibs/anim/src +libpath = libpath libs/imago libpath libs/anim RM = rm -f !else -incpath = -Isrc -Isrc\dos -Ilibs\imago\src -libpath = libpath libs\imago +incpath = -Isrc -Isrc\dos -Ilibs -Ilibs\imago\src -Ilibs\anim\src +libpath = libpath libs\imago libpath libs\anim RM = del !endif diff --git a/Makefile.dj b/Makefile.dj index 2088717..a687012 100644 --- a/Makefile.dj +++ b/Makefile.dj @@ -11,7 +11,7 @@ else TOOLPREFIX = i586-pc-msdosdjgpp- endif -inc = -Isrc -Isrc/dos -Ilibs/imago/src -Ilibs/mikmod/include +inc = -Isrc -Isrc/dos -Ilibs -Ilibs/imago/src -Ilibs/anim/src -Ilibs/mikmod/include opt = -O3 -ffast-math -fno-strict-aliasing dbg = -g warn = -pedantic -Wall -Wno-unused-function -Wno-unused-variable @@ -19,9 +19,9 @@ warn = -pedantic -Wall -Wno-unused-function -Wno-unused-variable CC = $(TOOLPREFIX)gcc AR = $(TOOLPREFIX)ar CFLAGS = $(warn) -march=pentium $(dbg) $(opt) $(inc) -LDFLAGS = libs/imago/imago.dja libs/mikmod/dos/libmikmod.a +LDFLAGS = libs/imago/imago.dja libs/anim/anim.dja libs/mikmod/dos/libmikmod.a -$(bin): $(obj) imago mikmod +$(bin): $(obj) imago anim mikmod $(CC) -o $@ -Wl,-Map=ld.map $(obj) $(LDFLAGS) %.cof: %.asm @@ -39,6 +39,10 @@ $(bin): $(obj) imago mikmod imago: $(MAKE) -C libs/imago -f Makefile.dj +.PHONY: anim +anim: + $(MAKE) -C libs/anim -f Makefile.dj + .PHONY: mikmod mikmod: $(MAKE) -C libs/mikmod/dos -f Makefile.dj @@ -46,6 +50,7 @@ mikmod: .PHONY: cleanlibs cleanlibs: $(MAKE) -C libs/imago -f Makefile.dj clean + $(MAKE) -C libs/anim -f Makefile.dj clean $(MAKE) -C libs/mikmod/dos -f Makefile.dj clean .PHONY: clean diff --git a/mklibs.bat b/mklibs.bat index 51f4b28..c8f18f5 100644 --- a/mklibs.bat +++ b/mklibs.bat @@ -1,5 +1,5 @@ cd libs\imago wmake %1 %2 %3 %4 %5 %6 %7 %8 -cd ..\oldmik +cd ..\anim wmake %1 %2 %3 %4 %5 %6 %7 %8 cd ..\.. diff --git a/src/treestor.c b/src/treestor.c index bad0ea7..43c99ac 100644 --- a/src/treestor.c +++ b/src/treestor.c @@ -4,7 +4,7 @@ #include #include "treestor.h" -#ifdef WIN32 +#if defined(__WATCOMC__) || defined(_MSC_VER) || defined(__DJGPP__) #include #else #include -- 1.7.10.4