Basic work to get make compiling again
Fonts are beyond fucked so this will have to be figured out in a new commit
This commit is contained in:
parent
b44e97cc21
commit
a917a2a713
8 changed files with 59 additions and 8 deletions
11
src/Makefile
11
src/Makefile
|
|
@ -220,10 +220,12 @@ sources+=\
|
|||
$(call List,Sourcefile)\
|
||||
$(call List,blua/Sourcefile)\
|
||||
$(call List,blan/Sourcefile)\
|
||||
$(call List,acs/Sourcefile)\
|
||||
$(call List,acs/ACSVM/Sourcefile)\
|
||||
$(call List,objects/Sourcefile)\
|
||||
|
||||
depends:=$(basename $(filter %.c %.s,$(sources)))
|
||||
objects:=$(basename $(filter %.c %.s %.nas,$(sources)))
|
||||
depends:=$(basename $(filter %.c %.cpp %.s,$(sources)))
|
||||
objects:=$(basename $(filter %.c %.cpp %.s %.nas,$(sources)))
|
||||
|
||||
depends:=$(depends:%=$(depdir)/%.d)
|
||||
|
||||
|
|
@ -292,10 +294,11 @@ opts+=$(debug_opts)
|
|||
opts+=$(foreach v,$(passthru_opts),$(if $($(v)),-D$(v)))
|
||||
|
||||
opts+=$(WFLAGS) $(CPPFLAGS) $(CFLAGS)
|
||||
libs+=$(LDFLAGS)
|
||||
libs+=$(LDFLAGS) -lstdc++
|
||||
asflags:=$(ASFLAGS) -x assembler-with-cpp
|
||||
|
||||
cc=$(CC)
|
||||
cxx=$(CXX)
|
||||
|
||||
ifdef DISTCC
|
||||
cc=distcc $(CC)
|
||||
|
|
@ -398,6 +401,7 @@ endif
|
|||
endef
|
||||
|
||||
$(eval $(call _recipe,c))
|
||||
$(eval $(call _recipe,cpp))
|
||||
$(eval $(call _recipe,s,$(asflags)))
|
||||
|
||||
# compiling recipe template
|
||||
|
|
@ -412,6 +416,7 @@ endef
|
|||
|
||||
$(eval $(call _recipe,o,c,$(cc) -c -o $$@ $$<))
|
||||
$(eval $(call _recipe,o,nas,$(nasm) -o $$@ $$<))
|
||||
$(eval $(call _recipe,o,cpp,$(cxx) -c -o $$@ $$<))
|
||||
$(eval $(call _recipe,o,s,$(cc) $(asflags) -c -o $$@ $$<))
|
||||
$(eval $(call _recipe,res,rc,$(windres) -i $$< -o $$@))
|
||||
|
||||
|
|
|
|||
|
|
@ -122,6 +122,4 @@ k_terrain.c
|
|||
k_brightmap.c
|
||||
k_director.c
|
||||
k_follower.c
|
||||
k_acs.c
|
||||
k_acs-func.c
|
||||
|
||||
k_mapuser.c
|
||||
|
|
|
|||
22
src/acs/ACSVM/Sourcefile
Normal file
22
src/acs/ACSVM/Sourcefile
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
ACSVM/Action.cpp
|
||||
ACSVM/Array.cpp
|
||||
ACSVM/BinaryIO.cpp
|
||||
ACSVM/CallFunc.cpp
|
||||
ACSVM/CodeData.cpp
|
||||
ACSVM/Environment.cpp
|
||||
ACSVM/Error.cpp
|
||||
ACSVM/Function.cpp
|
||||
ACSVM/Init.cpp
|
||||
ACSVM/Jump.cpp
|
||||
ACSVM/Module.cpp
|
||||
ACSVM/ModuleACS0.cpp
|
||||
ACSVM/ModuleACSE.cpp
|
||||
ACSVM/PrintBuf.cpp
|
||||
ACSVM/Scope.cpp
|
||||
ACSVM/Script.cpp
|
||||
ACSVM/Serial.cpp
|
||||
ACSVM/String.cpp
|
||||
ACSVM/Thread.cpp
|
||||
ACSVM/ThreadExec.cpp
|
||||
ACSVM/Tracer.cpp
|
||||
Util/Floats.cpp
|
||||
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
#include "Floats.hpp"
|
||||
|
||||
#include "ACSVM/Thread.hpp"
|
||||
#include "../ACSVM/Thread.hpp"
|
||||
|
||||
#include <cstdio>
|
||||
|
||||
|
|
|
|||
6
src/acs/Sourcefile
Normal file
6
src/acs/Sourcefile
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
environment.cpp
|
||||
thread.cpp
|
||||
thread.hpp
|
||||
call-funcs.cpp
|
||||
stream.cpp
|
||||
interface.cpp
|
||||
13
src/hardware/Sourcefile
Normal file
13
src/hardware/Sourcefile
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
hw_bsp.c
|
||||
hw_draw.c
|
||||
hw_light.c
|
||||
hw_main.c
|
||||
hw_clip.c
|
||||
hw_md2.c
|
||||
hw_cache.c
|
||||
hw_md2load.c
|
||||
hw_md3load.c
|
||||
hw_model.c
|
||||
u_list.c
|
||||
hw_batching.c
|
||||
r_opengl/r_opengl.c
|
||||
|
|
@ -1 +1 @@
|
|||
loops.c
|
||||
loops.cpp
|
||||
|
|
|
|||
7
src/sdl/Sourcefile
Normal file
7
src/sdl/Sourcefile
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
i_net.c
|
||||
i_system.c
|
||||
i_main.c
|
||||
i_video.c
|
||||
dosstr.c
|
||||
endtxt.c
|
||||
hwsym_sdl.c
|
||||
Loading…
Reference in a new issue