mirror of
https://git.freebsd.org/ports.git
synced 2025-07-11 14:29:17 -04:00
Changes since last update: * Unicode fix thanx to agsags * Fixed some compilation warnings * Fix const issues thanx to Harald Gutsche * Fix MINGW issue where it lies about the size of a file * Fixed bug in with -R option * Prevented substitutions in strings in code
64 lines
2 KiB
Text
64 lines
2 KiB
Text
--- Makefile.orig 2010-12-23 19:00:21.000000000 +0000
|
||
+++ Makefile 2010-12-23 19:01:59.000000000 +0000
|
||
@@ -11,7 +11,7 @@
|
||
MINOR=26
|
||
RELEASE=$(MAJOR).$(MINOR)
|
||
|
||
-CC = gcc
|
||
+CC ?= gcc
|
||
|
||
ifndef PREFIX
|
||
PREFIX=/usr/local
|
||
@@ -38,7 +38,7 @@
|
||
ARCH = x86
|
||
endif
|
||
|
||
-ifeq ($(ARCH),x86_64)
|
||
+ifeq ($(ARCH),amd64)
|
||
CFLAGS += -fPIC
|
||
endif
|
||
|
||
@@ -64,14 +64,7 @@
|
||
CFLAGS += -DUSE_FREELISTS
|
||
endif
|
||
|
||
-D_BUILD_VERSION = $(shell svnversion .)
|
||
-ifeq ($(D_BUILD_VERSION),exported)
|
||
- D_BUILD_VERSION = $(shell git show-ref 2> /dev/null | head -1 | cut -d ' ' -f 1)
|
||
- ifeq ($(D_BUILD_VERSION),)
|
||
- D_BUILD_VERSION = $(shell cat D_BUILD_VERSION)
|
||
- endif
|
||
-endif
|
||
-CFLAGS += -DD_MAJOR_VERSION=$(MAJOR) -DD_MINOR_VERSION=$(MINOR) -DD_BUILD_VERSION=\"$(D_BUILD_VERSION)\"
|
||
+CFLAGS += -DD_MAJOR_VERSION=$(MAJOR) -DD_MINOR_VERSION=$(MINOR) -DD_BUILD_VERSION=\"\"
|
||
|
||
CFLAGS += -Wall
|
||
# debug flags
|
||
@@ -99,7 +92,7 @@
|
||
PYTHON_FILES = d/python/Makefile d/python/*.py d/python/*.c d/python/*.h d/python/*.i d/python/README d/python/*.html d/python/contrib/d* d/python/tests/*.py
|
||
VERILOG_FILES = d/verilog/Makefile d/verilog/verilog.g d/verilog/README d/verilog/ambig.c \
|
||
d/verilog/main.c d/verilog/vparse.c d/verilog/vparse.h d/verilog/verilog_tests
|
||
-TAR_FILES = $(AUX_FILES) $(TEST_FILES) $(PYTHON_FILES) $(VERILOG_FILES) d/BUILD_VERSION \
|
||
+TAR_FILES = $(AUX_FILES) $(TEST_FILES) $(PYTHON_FILES) $(VERILOG_FILES) \
|
||
d/grammar.g d/sample.g d/my.g
|
||
|
||
LIB_SRCS = arg.c parse.c scan.c symtab.c util.c read_binary.c dparse_tree.c
|
||
@@ -146,7 +139,7 @@
|
||
|
||
ALL_SRCS = $(MAKE_PARSER_SRCS) $(BASE_SAMPLE_PARSER_SRCS) $(LIB_SRCS) $(MK_LIB_SRCS)
|
||
|
||
-all: $(EXECS) $(LIBRARIES) BUILD_VERSION make_dparser.cat
|
||
+all: $(EXECS) $(LIBRARIES) make_dparser.cat
|
||
|
||
version:
|
||
echo $(OS_TYPE) $(OS_VERSION)
|
||
@@ -205,9 +198,6 @@
|
||
nroff -man make_dparser.1 | sed -e 's/.//g' > make_dparser.cat
|
||
|
||
build_version:
|
||
- rm -f BUILD_VERSION.tmp
|
||
- echo $(D_BUILD_VERSION) > BUILD_VERSION.tmp
|
||
- mv BUILD_VERSION.tmp BUILD_VERSION
|
||
|
||
tar:
|
||
(cd ..;tar czf d-$(RELEASE)-src.tar.gz d/*.c d/*.h $(TAR_FILES))
|