mirror of
https://github.com/aap/librw.git
synced 2024-11-25 05:05:42 +00:00
19 lines
561 B
Makefile
19 lines
561 B
Makefile
SRCDIR=src
|
|
BUILDDIR=build
|
|
SRC := $(patsubst %.cpp,$(SRCDIR)/%.cpp, rwbase.cpp clump.cpp\
|
|
geometry.cpp plugins.cpp ps2.cpp\
|
|
ogl.cpp)
|
|
OBJ := $(patsubst $(SRCDIR)/%.cpp,$(BUILDDIR)/%.o,$(SRC))
|
|
CFLAGS=-Wall -Wextra -g #-Wno-parentheses #-Wconversion
|
|
|
|
librw.a: $(OBJ)
|
|
ar scr $@ $(OBJ)
|
|
|
|
$(BUILDDIR)/%.o: $(SRCDIR)/%.cpp
|
|
$(CXX) $(CFLAGS) -c $< -o $@
|
|
|
|
$(BUILDDIR)/%.d: $(SRCDIR)/%.cpp
|
|
$(CXX) -MM -MT '$(patsubst $(SRCDIR)/%.cpp,$(BUILDDIR)/%.o,$<)' $(CFLAGS) $< > $@
|
|
|
|
-include $(DEP)
|