Fix readrpl Makefile

This commit is contained in:
James Benton 2016-01-04 09:17:48 -08:00
parent 0df2531623
commit f723c4c462

View File

@ -2,18 +2,17 @@ WUT_ROOT := $(CURDIR)/../..
TARGET := readrpl TARGET := readrpl
SOURCE := . SOURCE := .
INCLUDE := ../common INCLUDE := ../common ../ext/cppformat ../ext/zlib
CXX := g++ CXX := g++
CPPFORMATSRC := $(wildcard $(../ext/cppformat)/*.cc) CPPFORMATSRC := ../ext/cppformat/format.cc
ZLIBSRC := $(wildcard $(../ext/zlib)/*.c)
CFILES := $(foreach dir,$(SOURCE),$(wildcard $(dir)/*.cpp)) $(CPPFORMATSRC) $(ZLIBSRC) CFILES := $(foreach dir,$(SOURCE),$(wildcard $(dir)/*.cpp))
INCLUDES := $(foreach dir,$(INCLUDE),-I$(dir)) INCLUDES := $(foreach dir,$(INCLUDE),-I$(dir))
CFLAGS := -O2 -Wall --std=c++14 CFLAGS := -O2 -Wall --std=c++14
LDFLAGS := LDFLAGS := -lz
all: $(TARGET) all: $(TARGET)
@ -27,4 +26,4 @@ install: all
$(TARGET): $(CFILES) $(TARGET): $(CFILES)
@echo "[CXX] $(notdir $<)" @echo "[CXX] $(notdir $<)"
@$(CXX) $(CFLAGS) $(INCLUDES) $< -o $@ $(LDFLAGS) $(CXX) $(CFLAGS) $(INCLUDES) $< -o $@ $(LDFLAGS) $(CPPFORMATSRC)