summaryrefslogtreecommitdiffstats
path: root/utils/regtools/lib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'utils/regtools/lib/Makefile')
-rw-r--r--utils/regtools/lib/Makefile9
1 files changed, 3 insertions, 6 deletions
diff --git a/utils/regtools/lib/Makefile b/utils/regtools/lib/Makefile
index 08021ef941..d7d6c1b07a 100644
--- a/utils/regtools/lib/Makefile
+++ b/utils/regtools/lib/Makefile
@@ -1,18 +1,15 @@
CC?=gcc
CXX?=g++
AR?=ar
-CFLAGS=-Wall -O2 `xml2-config --cflags` -std=c99 -g -fPIC
-CXXFLAGS=-Wall -O2 `xml2-config --cflags` -g -fPIC
+INCLUDE=../include/
+CXXFLAGS=-Wall -O2 `xml2-config --cflags` -g -fPIC -I$(INCLUDE)
LIB=libsocdesc.a
SRC=$(wildcard *.c)
SRCXX=$(wildcard *.cpp)
-OBJ=$(SRC:.c=.o) $(SRCXX:.cpp=.o)
+OBJ=$(SRCXX:.cpp=.o)
all: $(LIB) $(EXEC)
-%.o: %.c
- $(CC) $(CFLAGS) -c -o $@ $<
-
%.o: %.cpp
$(CXX) $(CXXFLAGS) -c -o $@ $<