SA-MP/raknet/Makefile
RD42 bcdbedc0be Revert RakNet source files back to the original v2.518 state
* Add RakNet source files to the VS project
2024-08-16 23:33:48 +08:00

20 lines
507 B
Makefile

include $(BASE_DIR)/makefile.defs
all: shared static
shared:
mkdir -p $(BASE_DIR)/Lib/linux/
$(CC) $(DEBUG) -I$(INCLUDE) -w -c *.cpp
$(CC) $(DEBUG) -shared -Wl-soname,libraknet.so.2 -o $(BASE_DIR)/Lib/linux/libraknet.so.$(VERSION) *.o $(LIBS)
static:
mkdir -p $(BASE_DIR)/Lib/linux/
$(CC) $(DEBUG) -I$(INCLUDE) -w -c *.cpp
$(AR) rcs $(BASE_DIR)/Lib/linux/libraknet.a *.o
clean:
rm -f core
rm -f *.o
rm -f $(BASE_DIR)/Lib/linux/libraknet.so.$(VERSION)
rm -f $(BASE_DIR)/Lib/linux/linuxraknet.a