mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-14 08:30:58 +00:00
043c756676
git-svn-id: https://svn.eduke32.com/eduke32@1905 1a8010ca-5511-0410-912e-c29ae57300e0
48 lines
994 B
Makefile
48 lines
994 B
Makefile
include ../../Makefile.common
|
|
include ../../$(EROOT)/Makefile.shared
|
|
|
|
OBJ=obj
|
|
OBJNAME=libenet.a
|
|
SRC=src
|
|
INC=include
|
|
|
|
CFLAGS=$(BASECFLAGS) $(BUILDCFLAGS) $(F_NO_STACK_PROTECTOR)
|
|
# for BUILD_ECHOFLAGS:
|
|
OURCFLAGS=$(CFLAGS)
|
|
CPPFLAGS=-I$(INC) -I$(SRC) -I../../$(EROOT)/include
|
|
|
|
|
|
OBJECTS=$(OBJ)/callbacks.o \
|
|
$(OBJ)/host.o \
|
|
$(OBJ)/list.o \
|
|
$(OBJ)/packet.o \
|
|
$(OBJ)/peer.o \
|
|
$(OBJ)/protocol.o \
|
|
$(OBJ)/compress.o
|
|
|
|
ifeq ($(PLATFORM),WINDOWS)
|
|
OBJECTS+= $(OBJ)/win32.o
|
|
OBJNAME=libenet_win32.a
|
|
OBJ=obj_win
|
|
else
|
|
OBJECTS+= $(OBJ)/unix.o
|
|
endif
|
|
|
|
# OBJECTS=$(SOURCES:%.c=$(OBJ)/%.o)
|
|
|
|
$(OBJNAME): $(OBJECTS)
|
|
$(BUILD_ECHOFLAGS)
|
|
$(ARCHIVE_STATUS)
|
|
if $(AR) cr $@ $^; then $(ARCHIVE_OK); else $(ARCHIVE_FAILED); fi
|
|
|
|
$(OBJECTS): $(OBJ)/%.o: $(SRC)/%.c $(INC)/enet/*.h
|
|
-mkdir -p $(OBJ)
|
|
$(COMPILE_STATUS)
|
|
if $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@; then $(COMPILE_OK); else $(COMPILE_FAILED); fi
|
|
|
|
ifeq ($(PRETTY_OUTPUT),1)
|
|
.SILENT:
|
|
endif
|
|
.PHONY: clean
|
|
clean:
|
|
-rm -f $(OBJECTS) $(OBJNAME)
|