mirror of
https://github.com/wiiu-env/wut.git
synced 2025-01-07 12:08:15 +01:00
Fix readrpl Makefile
This commit is contained in:
parent
0df2531623
commit
f723c4c462
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user