Subversion Repositories eduke32

Rev

Rev 8091 | Rev 8121 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8091 Rev 8094
Line 182... Line 182...
182
182
183
ifeq ($(RENDERTYPE),WIN)
183
ifeq ($(RENDERTYPE),WIN)
184
    glad_objs += glad_wgl.c
184
    glad_objs += glad_wgl.c
185
endif
185
endif
186
186
-
 
187
#### Voidwrap
-
 
188
-
 
189
voidwrap := voidwrap
-
 
190
-
 
191
voidwrap_objs := \
-
 
192
    voidwrap_steam.cpp
-
 
193
-
 
194
voidwrap_root := $(source)/$(voidwrap)
-
 
195
voidwrap_src := $(voidwrap_root)/src
-
 
196
voidwrap_inc := $(voidwrap_root)/include
-
 
197
voidwrap_obj := $(obj)/$(voidwrap)
-
 
198
-
 
199
ifeq ($(IMPLICIT_ARCH),x86_64)
-
 
200
    ifeq ($(PLATFORM),WINDOWS)
-
 
201
        voidwrap_lib := voidwrap_steam_x64.dll
-
 
202
        steamworks_lib := win64/steam_api64.dll
-
 
203
    else
-
 
204
        voidwrap_lib := libvoidwrap_steam.so.0
-
 
205
        steamworks_lib := linux64/libsteam_api.so
-
 
206
    endif
-
 
207
else
-
 
208
    ifeq ($(PLATFORM),WINDOWS)
-
 
209
        voidwrap_lib := voidwrap_steam_x86.dll
-
 
210
        steamworks_lib := steam_api.dll
-
 
211
    else
-
 
212
        voidwrap_lib := libvoidwrap_steam.so.0
-
 
213
        steamworks_lib := linux32/libsteam_api.so
-
 
214
    endif
-
 
215
endif
-
 
216
-
 
217
voidwrap_cflags := -I$(voidwrap_root)/sdk/public/steam
-
 
218
187
219
188
##### Component Definitions
220
##### Component Definitions
189
221
190
#### EBacktrace
222
#### EBacktrace
191
223
Line 257... Line 289...
257
    miniz_tinfl.c \
289
    miniz_tinfl.c \
258
    miniz_tdef.c \
290
    miniz_tdef.c \
259
    fix16.cpp \
291
    fix16.cpp \
260
    fix16_str.cpp \
292
    fix16_str.cpp \
261
    sjson.cpp \
293
    sjson.cpp \
-
 
294
    communityapi.cpp \
262
295
263
engine_editor_objs := \
296
engine_editor_objs := \
264
    build.cpp \
297
    build.cpp \
265
    config.cpp \
298
    config.cpp \
266
    defs.cpp \
299
    defs.cpp \
Line 847... Line 880...
847
endif
880
endif
848
881
849
882
850
#### Final setup
883
#### Final setup
851
884
-
 
885
COMPILERFLAGS += \
-
 
886
    -I$(engine_inc) \
-
 
887
    -I$(mact_inc) \
852
COMPILERFLAGS += -I$(engine_inc) -I$(mact_inc) -I$(audiolib_inc) -I$(enet_inc) -I$(glad_inc) -MP -MMD
888
    -I$(audiolib_inc) \
-
 
889
    -I$(enet_inc) \
-
 
890
    -I$(glad_inc) \
-
 
891
    -I$(voidwrap_inc) \
-
 
892
    -MP -MMD \
-
 
893
853
ifneq (0,$(USE_PHYSFS))
894
ifneq (0,$(USE_PHYSFS))
854
    COMPILERFLAGS += -I$(physfs_inc) -DUSE_PHYSFS
895
    COMPILERFLAGS += -I$(physfs_inc) -DUSE_PHYSFS
855
endif
896
endif
856
897
857
898
Line 868... Line 909...
868
    mact \
909
    mact \
869
    enet \
910
    enet \
870
    libxmplite \
911
    libxmplite \
871
    lpeg \
912
    lpeg \
872
    glad \
913
    glad \
-
 
914
    voidwrap \
873
915
874
ifneq (0,$(USE_PHYSFS))
916
ifneq (0,$(USE_PHYSFS))
875
    libraries += physfs
917
    libraries += physfs
876
endif
918
endif
877
919
Line 972... Line 1014...
972
getdxdidf$(EXESUFFIX): $(tools_obj)/getdxdidf.$o
1014
getdxdidf$(EXESUFFIX): $(tools_obj)/getdxdidf.$o
973
	$(LINK_STATUS)
1015
	$(LINK_STATUS)
974
	$(RECIPE_IF) $(LINKER) -o $@ $^ $(LIBDIRS) $(LIBS) -ldinput $(RECIPE_RESULT_LINK)
1016
	$(RECIPE_IF) $(LINKER) -o $@ $^ $(LIBDIRS) $(LIBS) -ldinput $(RECIPE_RESULT_LINK)
975
1017
976
1018
-
 
1019
### Voidwrap
-
 
1020
-
 
1021
$(voidwrap_lib): $(foreach i,$(voidwrap),$(call expandobjs,$i))
-
 
1022
	$(LINK_STATUS)
-
 
1023
	$(RECIPE_IF) $(LINKER) -shared -Wl,-soname,$@ -o $@ $^ $(LIBDIRS) $(voidwrap_root)/sdk/redistributable_bin/$(steamworks_lib) $(RECIPE_RESULT_LINK)
-
 
1024
-
 
1025
$(voidwrap_obj)/%.$o: $(voidwrap_src)/%.cpp | $(voidwrap_obj)
-
 
1026
	$(COMPILE_STATUS)
-
 
1027
	$(RECIPE_IF) $(COMPILER_CXX) $(voidwrap_cflags) -fPIC -c $< -o $@ $(RECIPE_RESULT_COMPILE)
-
 
1028
977
### Lunatic
1029
### Lunatic
978
1030
979
# Create object files directly with luajit
1031
# Create object files directly with luajit
980
$(duke3d_obj)/%.$o: $(lunatic_src)/%.lua | $(duke3d_obj)
1032
$(duke3d_obj)/%.$o: $(lunatic_src)/%.lua | $(duke3d_obj)
981
	$(COMPILE_STATUS)
1033
	$(COMPILE_STATUS)
Line 1091... Line 1143...
1091
	-$(call RMDIR,$($(subst clean,,$@)_obj))
1143
	-$(call RMDIR,$($(subst clean,,$@)_obj))
1092
1144
1093
clean: cleanduke3d cleantools
1145
clean: cleanduke3d cleantools
1094
	-$(call RMDIR,$(obj))
1146
	-$(call RMDIR,$(obj))
1095
	-$(call RM,$(ebacktrace_dll))
1147
	-$(call RM,$(ebacktrace_dll))
-
 
1148
	-$(call RM,$(voidwrap_lib))
1096
1149
1097
printtools:
1150
printtools:
1098
	echo "$(addsuffix $(EXESUFFIX),$(tools_targets))"
1151
	echo "$(addsuffix $(EXESUFFIX),$(tools_targets))"
1099
1152
1100
rev: $(engine_obj)/rev.$o
1153
rev: $(engine_obj)/rev.$o