mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 14:37:29 +08:00
20 lines
507 B
Makefile
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
|