|
|
@ -45,7 +45,8 @@ SRCS+=./hud_spectator.cpp |
|
|
|
SRCS+=./hud_update.cpp |
|
|
|
SRCS+=./hud_update.cpp |
|
|
|
SRCS+=./in_camera.cpp |
|
|
|
SRCS+=./in_camera.cpp |
|
|
|
SRCS+=./input.cpp |
|
|
|
SRCS+=./input.cpp |
|
|
|
#SRCS+=./inputw32.cpp
|
|
|
|
SRCS+=./input_mouse.cpp |
|
|
|
|
|
|
|
SRCS+=./input_goldsource.cpp |
|
|
|
SRCS+=./menu.cpp |
|
|
|
SRCS+=./menu.cpp |
|
|
|
SRCS+=./message.cpp |
|
|
|
SRCS+=./message.cpp |
|
|
|
SRCS+=./overview.cpp |
|
|
|
SRCS+=./overview.cpp |
|
|
@ -72,9 +73,13 @@ CFLAGS = -m32 |
|
|
|
OBJS = $(SRCS:.cpp=.o) $(SRCS_C:.c=.o) |
|
|
|
OBJS = $(SRCS:.cpp=.o) $(SRCS_C:.c=.o) |
|
|
|
|
|
|
|
|
|
|
|
LIBS=-lm |
|
|
|
LIBS=-lm |
|
|
|
|
|
|
|
ifeq ($(GOLDSOURCE_SUPPORT),1) |
|
|
|
|
|
|
|
DEFINES += -DGOLDSOURCE_SUPPORT |
|
|
|
|
|
|
|
LIBS += -lSDL2 |
|
|
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(shell uname -s),Linux) |
|
|
|
ifeq ($(shell uname -s),Linux) |
|
|
|
LIBS=$(LIBS) -ldl |
|
|
|
LIBS += -ldl |
|
|
|
endif |
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
%.o : %.c |
|
|
|
%.o : %.c |
|
|
@ -83,7 +88,7 @@ endif |
|
|
|
%.o : %.cpp |
|
|
|
%.o : %.cpp |
|
|
|
$(CXX) $(CFLAGS) $(INCLUDES) $(DEFINES) -fPIC -c $< -o $@ |
|
|
|
$(CXX) $(CFLAGS) $(INCLUDES) $(DEFINES) -fPIC -c $< -o $@ |
|
|
|
client.so : $(OBJS) |
|
|
|
client.so : $(OBJS) |
|
|
|
$(CXX) $(OBJS) -o client.so -shared -Wl,--no-undefined -fPIC $(LIBS) |
|
|
|
$(CXX) $(CFLAGS) $(OBJS) -o client.so -shared -Wl,--no-undefined -fPIC $(LIBS) |
|
|
|
|
|
|
|
|
|
|
|
clean: |
|
|
|
clean: |
|
|
|
$(RM) $(OBJS) |
|
|
|
$(RM) $(OBJS) |
|
|
|