2021-06-02 08:49:27 +00:00
|
|
|
# WorldSpawn Makefile
|
|
|
|
|
2021-06-07 06:20:34 +00:00
|
|
|
GLIB_CFLAGS=$(shell pkg-config --cflags gtk+-2.0) -DGTK_TARGET=2
|
2021-06-02 08:49:27 +00:00
|
|
|
GLIB_LDFLAGS=$(shell pkg-config --libs gtk+-2.0)
|
2021-06-07 06:20:34 +00:00
|
|
|
|
2021-06-06 17:08:06 +00:00
|
|
|
PLUGIN_CFLAGS=$(CFLAGS) $(GLIB_CFLAGS) -I../../include -I../../libs -fPIC -fvisibility=hidden
|
2021-06-02 08:49:27 +00:00
|
|
|
PLUGIN_LDFLAGS=$(LDFLAGS) $(GLIB_LDFLAGS) -shared
|
2022-05-13 16:34:58 +00:00
|
|
|
LIB_EXT=so
|
2021-06-02 08:49:27 +00:00
|
|
|
|
|
|
|
DO_CXX=$(CXX) $(PLUGIN_CFLAGS) -o $@ -c $<
|
|
|
|
|
|
|
|
.cpp.o:
|
|
|
|
$(DO_CXX)
|
|
|
|
|
|
|
|
WS_OBJS = \
|
|
|
|
eclassmodel.o \
|
|
|
|
entity.o \
|
|
|
|
filters.o \
|
|
|
|
generic.o \
|
|
|
|
group.o \
|
|
|
|
light.o \
|
|
|
|
miscmodel.o \
|
|
|
|
prop_dynamic.o \
|
|
|
|
plugin.o \
|
|
|
|
skincache.o \
|
|
|
|
targetable.o
|
|
|
|
|
|
|
|
# binary target
|
2022-05-13 16:34:58 +00:00
|
|
|
../../build/plugins/libentity.$(LIB_EXT): $(WS_OBJS)
|
2021-08-08 15:10:20 +00:00
|
|
|
$(CXX) -o $@ $(WS_OBJS) $(PLUGIN_LDFLAGS)
|
2021-06-02 08:49:27 +00:00
|
|
|
|
|
|
|
# object files
|
|
|
|
eclassmodel.o: eclassmodel.cpp eclassmodel.h
|
|
|
|
entity.o: entity.cpp entity.h
|
|
|
|
filters.o: filters.cpp filters.h
|
|
|
|
generic.o: generic.cpp generic.h
|
|
|
|
group.o: group.cpp group.h
|
|
|
|
light.o: light.cpp light.h
|
|
|
|
miscmodel.o: miscmodel.cpp miscmodel.h
|
|
|
|
prop_dynamic.o: prop_dynamic.cpp prop_dynamic.h
|
|
|
|
plugin.o: plugin.cpp
|
|
|
|
skincache.o: skincache.cpp skincache.h
|
|
|
|
targetable.o: targetable.cpp targetable.h
|
|
|
|
|
|
|
|
clean:
|
2022-05-13 16:34:58 +00:00
|
|
|
-rm -f *.o ../../build/plugins/libentity.$(LIB_EXT)
|