Few more files compile.
This commit is contained in:
parent
936a5198e4
commit
8b4a564235
9 changed files with 52 additions and 31 deletions
16
Makefile
16
Makefile
|
@ -2,6 +2,7 @@ CC = gcc
|
|||
NASM = nasm
|
||||
|
||||
CFLAGS = -g -Wall -Iinclude -Iwin95 -Iavp -Iavp/win95 -Iavp/support -Iavp/win95/frontend
|
||||
CXXFLAGS = $(CFLAGS)
|
||||
LDLIBS = -lm # /home/relnev/ElectricFence-2.2.2/libefence.a
|
||||
|
||||
CFLAGS += `sdl-config --cflags`
|
||||
|
@ -10,6 +11,8 @@ LDLIBS += `sdl-config --libs`
|
|||
AFLAGS = -g -Iinclude/ -w+macro-params -w+orphan-labels -w+number-overflow
|
||||
|
||||
ROOT = afont.c frustum.c kshape.c map.c maths.c mem3dc.c mem3dcpp.cpp module.c morph.c mslhand.c object.c shpanim.c sphere.c tables.c vdb.c version.c
|
||||
AVP = ai_sight.c
|
||||
# avpitems.cpp
|
||||
|
||||
# the following should really be autogenerated...
|
||||
|
||||
|
@ -19,17 +22,18 @@ OBJNAMES1 = $(addsuffix .o,$(basename $(1)))
|
|||
|
||||
ROOTSRC = $(ROOT)
|
||||
ROOTOBJ = $(call OBJNAMES1,$(ROOT))
|
||||
AVPSRC = $(call SRCNAMES,$(AVP),avp)
|
||||
AVPOBJ = $(call OBJNAMES,$(AVP),avp)
|
||||
|
||||
|
||||
SRC = $(ROOTSRC)
|
||||
OBJ = $(ROOTOBJ)
|
||||
SRC = $(ROOTSRC) $(AVPSRC)
|
||||
OBJ = $(ROOTOBJ) $(AVPOBJ)
|
||||
|
||||
.SUFFIXES: .asm
|
||||
|
||||
all: avp
|
||||
all: AvP
|
||||
|
||||
avp: depend $(OBJ)
|
||||
gcc -o avp $(OBJ) $(LDLIBS)
|
||||
AvP: depend $(OBJ)
|
||||
gcc -o AvP $(OBJ) $(LDLIBS)
|
||||
|
||||
compile: $(OBJ)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue