A template engine for C++ applications.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
363 B

include Makefile.o.dep
all: ezc.a
ezc.a: $(o)
ar rcs ezc.a $(o)
.SUFFIXES: .cpp .o
$(CXX) -c $(CXXFLAGS) $<
makedepend -Y. -f- *.cpp > Makefile.dep
echo -n "o = " > Makefile.o.dep
ls -1 *.cpp | xargs -I foo echo -n foo " " | sed -E "s/([^\.]*)\.cpp[ ]/\1\.o/g" >> Makefile.o.dep
rm -f *.o
rm -f *.a
include Makefile.dep