diff options
Diffstat (limited to 'pagelib/Makefile')
-rw-r--r-- | pagelib/Makefile | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pagelib/Makefile b/pagelib/Makefile new file mode 100644 index 0000000..6c91953 --- /dev/null +++ b/pagelib/Makefile @@ -0,0 +1,33 @@ +CXX ?= g++ +AR ?= ar + +CXXFLAGS ?= -O2 -Woverloaded-virtual -Wall -fPIC + +INCLUDES += -I.. -I$(VDRDIR)/include + +### The directory environment: + +VDRDIR ?= ../../../.. + +### The object files (add further files here): + +OBJS = sortedtimers.o tools.o + +### Default rules: + +.PHONY: all clean + +all: libpagelib.a + +### Implicit rules: + +%.o: %.cpp + $(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) $< + +### Targets: + +libpagelib.a: $(OBJS) + $(AR) r $@ $^ + +clean: + @rm -f *~ *.o core* libpagelib.a |