bdfbdafad2
While here address some complaints by portlint and portclippy
32 lines
751 B
Plaintext
32 lines
751 B
Plaintext
--- Makefile.orig 2013-09-07 23:56:16 UTC
|
|
+++ Makefile
|
|
@@ -8,8 +8,6 @@ endif
|
|
|
|
TARGET := opentyrian
|
|
|
|
-WITH_NETWORK := true
|
|
-
|
|
############################################################
|
|
|
|
STRIP := strip
|
|
@@ -21,19 +19,9 @@ OBJS := $(SRCS:src/%.c=obj/%.o)
|
|
|
|
# FLAGS ####################################################
|
|
|
|
-ifneq ($(MAKECMDGOALS), release)
|
|
- EXTRA_CFLAGS += -g3 -O0 -Werror
|
|
-else
|
|
- EXTRA_CFLAGS += -g0 -O2 -DNDEBUG
|
|
-endif
|
|
EXTRA_CFLAGS += -MMD -pedantic -Wall -Wextra -Wno-missing-field-initializers
|
|
ifeq ($(WITH_NETWORK), true)
|
|
EXTRA_CFLAGS += -DWITH_NETWORK
|
|
-endif
|
|
-
|
|
-HG_REV := $(shell hg id -ib && touch src/hg_revision.h)
|
|
-ifneq ($(HG_REV), )
|
|
- EXTRA_CFLAGS += '-DHG_REV="$(HG_REV)"'
|
|
endif
|
|
|
|
EXTRA_LDLIBS += -lm
|