summaryrefslogtreecommitdiff
path: root/httpd/Makefile
diff options
context:
space:
mode:
authorSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-01-02 19:18:27 +0000
committerSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-01-02 19:18:27 +0000
commit48c46dfdd986ad4a7a0692d05992f7882bef6a88 (patch)
tree88a3a88a7ab43632850569cba3ab48a1924d9e52 /httpd/Makefile
downloadvdr-plugin-live-48c46dfdd986ad4a7a0692d05992f7882bef6a88.tar.gz
vdr-plugin-live-48c46dfdd986ad4a7a0692d05992f7882bef6a88.tar.bz2
- initial checkin
Diffstat (limited to 'httpd/Makefile')
-rw-r--r--httpd/Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/httpd/Makefile b/httpd/Makefile
new file mode 100644
index 0000000..ffa7f0b
--- /dev/null
+++ b/httpd/Makefile
@@ -0,0 +1,33 @@
+CXX ?= g++
+AR ?= ar
+
+CXXFLAGS ?= -O2 -Woverloaded-virtual -Wall -fPIC
+
+INCLUDES += -I.
+
+OBJS = dispatcher.o job.o regex.o worker.o \
+ listener.o poller.o tntnet.o
+
+### Implicit rules:
+
+%.o: %.cpp
+ $(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) -o $@ $<
+
+# Dependencies:
+
+MAKEDEP = $(CXX) -MM -MG
+DEPFILE = .dependencies
+$(DEPFILE): Makefile
+ @$(MAKEDEP) $(DEFINES) $(INCLUDES) $(OBJS:%.o=%.cpp) > $@
+
+-include $(DEPFILE)
+
+### Targets:
+
+all: libhttpd.a
+
+libhttpd.a: $(OBJS)
+ $(AR) r $@ $^
+
+clean:
+ rm -f *.o core* libproctools.a proctest $(DEPFILE)