winix/Makefile

40 lines
710 B
Makefile
Executable File

# Makefile for GNU make
ifndef CXX
CXX = g++
export CXX
endif
ifndef CXXFLAGS
CXXFLAGS = -Wall -pedantic -g -I/usr/local/include -L/usr/local/lib
export CXXFLAGS
endif
all: cmslu.a
cmslu.a: FORCE
@cd core ; $(MAKE) -e
@cd content ; $(MAKE) -e
@cd confparser ; $(MAKE) -e
@cd templates ; $(MAKE) -e
ar rcs cmslu.a core/*.o content/*.o templates/*.o confparser/*.o
clean:
@cd core ; $(MAKE) -e clean
@cd content ; $(MAKE) -e clean
@cd confparser ; $(MAKE) -e clean
@cd templates ; $(MAKE) -e clean
rm -f cmslu.a
FORCE:
depend:
@cd core ; $(MAKE) -e depend
@cd content ; $(MAKE) -e depend
@cd confparser ; $(MAKE) -e depend
@cd templates ; $(MAKE) -e depend