mirror of
https://github.com/aap/librw.git
synced 2024-11-26 21:55:42 +00:00
17 lines
400 B
Makefile
17 lines
400 B
Makefile
|
# null, opengl
|
||
|
BUILD=null
|
||
|
|
||
|
# e.g. null -> -DRW_NULL
|
||
|
BUILDDEF:=$(shell echo $(BUILD) | tr a-z A-Z | sed 's/^/-DRW_/')
|
||
|
SRC := dumprwtree.cpp
|
||
|
OUT := dumprwtree
|
||
|
INC := -I/usr/local/include -I../..
|
||
|
CFLAGS=-Wall -Wextra -g $(BUILDDEF) -Wno-parentheses -Wno-write-strings #-Wconversion
|
||
|
LIB=../../librw-$(BUILD).a
|
||
|
|
||
|
$(OUT): $(SRC) $(LIB)
|
||
|
$(CXX) $(CFLAGS) $(INC) $(SRC) $(LIB) -o $(OUT)
|
||
|
|
||
|
clean:
|
||
|
rm -f $(OUT)
|