diff options
Diffstat (limited to 'css/Makefile')
-rw-r--r-- | css/Makefile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/css/Makefile b/css/Makefile new file mode 100644 index 0000000..006548e --- /dev/null +++ b/css/Makefile @@ -0,0 +1,39 @@ +CXX ?= g++ +AR ?= ar +ECPPC ?= ecppc + +CXXFLAGS ?= -O2 -Woverloaded-virtual -Wall -fPIC + +CXXFLAGS += `tntnet-config --cxxflags` +LDFLAGS += `tntnet-config --libs` + +INCLUDES += -I.. + +### The directory environment: +VDRDIR ?= ../../../.. + +### The object files (add further files here): + +OBJS = styles.o + +### Default rules: + +.PHONY: all clean + +### Implicit rules: + +%.o: %.cpp + $(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) $< + +%.cpp: %.css + $(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_CSS) -b $< + +### Targets: + +all: libcss.a + +libcss.a: $(OBJS) + $(AR) r $@ $^ + +clean: + @rm -f *~ *.o core* libcss.a $(OBJS:%.o=%.cpp) |