Skip to content

Commit 16cd06c

Browse files
author
Vernon Mauery
committed
Initial commit
Fast CGI code originally from fastcgi++ (http://fastcgipp.com/) Much of this was originally written in python, but it turned out that my firewall is too slow to run python fastcgi apps. So I set out to use c++ instead. The theme was based on the drupal 5 garland theme, modified to be the flames theme. It is a nearly all CSS based, so easily changeable.
0 parents  commit 16cd06c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+13199
-0
lines changed

Makefile

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
SHELL=/bin/sh
2+
MAKE = make
3+
SUBDIRS=fcgi
4+
5+
all: config.fcgi
6+
7+
subdirs:
8+
@for i in $(SUBDIRS); do \
9+
(cd $$i; $(MAKE) $(MFLAGS) $$@ ); done
10+
11+
config.fcgi: subdirs
12+
cp -a fcgi/config config.fcgi.tmp
13+
rm -f config.fcgi
14+
mv config.fcgi.tmp config.fcgi
15+
16+
clean:
17+
@for i in $(SUBDIRS); do \
18+
(cd $$i; $(MAKE) $(MFLAGS) clean ); done
19+
rm -f config.fcgi

fcgi/Makefile

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
CFLAGS=-c -I . -g
2+
3+
all: config
4+
5+
config: http.o transceiver.o request.o protocol.o exceptions.o config.o util.o db.o model.o
6+
g++ $^ -g -o $@ -lsqlite3
7+
8+
install: config
9+
rm -f /home/vhmauery/local/pyrobox/config.fcgi
10+
cp config /home/vhmauery/local/pyrobox/config.fcgi.tmp
11+
mv /home/vhmauery/local/pyrobox/config.fcgi.tmp /home/vhmauery/local/pyrobox/config.fcgi
12+
13+
http.o: http.cpp http.hpp utf8_codecvt.hpp utf8_codecvt_facet.hpp util.hpp
14+
g++ http.cpp $(CFLAGS) -o $@
15+
16+
transceiver.o: transceiver.cpp transceiver.hpp util.hpp
17+
g++ transceiver.cpp $(CFLAGS) -o $@
18+
19+
request.o: request.cpp utf8_codecvt_facet.cpp request.hpp utf8_codecvt.hpp utf8_codecvt_facet.hpp util.hpp
20+
g++ request.cpp $(CFLAGS) -o $@
21+
22+
protocol.o: protocol.cpp protocol.hpp util.hpp
23+
g++ protocol.cpp $(CFLAGS) -o $@
24+
25+
exceptions.o: exceptions.cpp exceptions.hpp util.hpp
26+
g++ exceptions.cpp $(CFLAGS) -o $@
27+
28+
util.o: util.cpp util.hpp
29+
g++ util.cpp $(CFLAGS) -o $@
30+
31+
db.o: db.cpp db.hpp
32+
g++ db.cpp $(CFLAGS) -o $@
33+
34+
model.o: model.cpp model.hpp db.hpp
35+
g++ model.cpp $(CFLAGS) -o $@
36+
37+
config.o: config.cpp manager.hpp request.hpp util.hpp db.hpp
38+
g++ config.cpp $(CFLAGS) -o $@
39+
40+
clean:
41+
rm -f *.o config
42+

0 commit comments

Comments
 (0)