53 lines
1.5 KiB
Makefile
53 lines
1.5 KiB
Makefile
|
|
# re: ``diagnostics-{color,show-caret}''
|
|
# fuck the gcc team! only idiots can like these 'new' diags.
|
|
# if you use older versions of gcc (e.g. 3.* or 4.*), build
|
|
# with smth. like
|
|
# CXX=g++ make
|
|
# or
|
|
# make CXX=g++
|
|
# (*YES*, gcc 3.* is perfectly okay to build this soft)
|
|
#
|
|
CXX = g++ -ansi -fdiagnostics-color=never -fno-diagnostics-show-caret
|
|
#CXX = g++ -ansi
|
|
|
|
# If you use the test.cgi example as a starting point for your own
|
|
# dullcgi-based program, chances are that you do it outside of
|
|
# Thalassa source tree. If this is the case, replace this value
|
|
# with _your_ path to the Thalassa directory, or set the variable
|
|
# from your command line
|
|
#
|
|
THALASSA_DIR = ../..
|
|
|
|
# choose what's appropriate for you (empty for a dynamic non-portable
|
|
# binary, ``-static'' for a static unstripped binary, or
|
|
# ``-static -s'' for a static stripped binary), or set the variable
|
|
# from your command line
|
|
#
|
|
#STATIC =
|
|
STATIC = -static
|
|
#STATIC = -static -s
|
|
|
|
|
|
|
|
##################################################################
|
|
# nothing below this point is intended to be customizable, but
|
|
# it's open source, so feel free to go on :-)
|
|
#
|
|
|
|
CXXFLAGS = -Wall -ggdb -I$(THALASSA_DIR)/cms -I$(THALASSA_DIR)/lib
|
|
|
|
all: test.cgi
|
|
|
|
%.o: %.cpp
|
|
$(CXX) $(CXXFLAGS) -c $< -o $@
|
|
|
|
test.cgi: test.o $(THALASSA_DIR)/cms/dullcgi.a
|
|
$(CXX) $(STATIC) $^ -o $@
|
|
|
|
$(THALASSA_DIR)/cms/dullcgi.a:
|
|
cd $(THALASSA_DIR)/cms && $(MAKE) dullcgi.a
|
|
|
|
clean:
|
|
rm -rf *.o test.cgi
|