mirror of
https://github.com/yarrick/iodine.git
synced 2025-06-06 02:33:44 +02:00
Merge c9598f37bd
into 63c386d0f8
This commit is contained in:
commit
570575dbda
1 changed files with 7 additions and 3 deletions
10
src/Makefile
10
src/Makefile
|
@ -8,11 +8,16 @@ OS = `echo $(TARGETOS) | tr "a-z" "A-Z"`
|
|||
ARCH = `uname -m`
|
||||
HEAD_COMMIT = `git rev-parse --short HEAD`
|
||||
|
||||
ALL_OBJS = $(COMMONOBJS) $(CLIENTOBJS) $(SERVEROBJS)
|
||||
DEPS = $(ALL_OBJS:.o=.d)
|
||||
|
||||
LIBPATH = -L.
|
||||
LDFLAGS += -lz `sh osflags $(TARGETOS) link` $(LIBPATH)
|
||||
CFLAGS += -std=c99 -c -g -Wall -D$(OS) -pedantic `sh osflags $(TARGETOS) cflags` -DGITREVISION=\"$(HEAD_COMMIT)\"
|
||||
CFLAGS += -std=c99 -c -g -Wall -Isrc -D$(OS) -pedantic `sh osflags $(TARGETOS) cflags` -DGITREVISION=\"$(HEAD_COMMIT)\" -MMD
|
||||
CFLAGS += -Wstrict-prototypes -Wtype-limits -Wmissing-declarations -Wmissing-prototypes
|
||||
|
||||
-include $(DEPS)
|
||||
|
||||
all: stateos $(CLIENT) $(SERVER)
|
||||
|
||||
stateos:
|
||||
|
@ -39,6 +44,5 @@ base64u.c: base64.c
|
|||
|
||||
clean:
|
||||
@echo "Cleaning src/"
|
||||
@rm -f $(CLIENT){,.exe} $(SERVER){,.exe} *~ *.o *.core base64u.*
|
||||
@rm -f $(CLIENT){,.exe} $(SERVER){,.exe} *~ *.o *.core base64u.* $(DEPS)
|
||||
@rm -rf obj libs #android stuff
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue