35 lines
855 B
Makefile
35 lines
855 B
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
|
|
CXXFLAGS = -Wall -ggdb -I../../cms -I../../lib
|
|
|
|
STATIC = -static
|
|
#STATIC = -static -s
|
|
|
|
all: ytid.cgi ytid.ini
|
|
|
|
%.o: %.cpp
|
|
$(CXX) $(CXXFLAGS) -c $< -o $@
|
|
|
|
ytid.cgi: ytid.o ../../cms/dullcgi.a
|
|
$(CXX) $(STATIC) $^ -o $@
|
|
|
|
../../cms/dullcgi.a:
|
|
cd ../../cms && $(MAKE) dullcgi.a
|
|
|
|
ytid.ini: ytid_conf.ini ytid_list.ini
|
|
echo '# Generated file, do not edit! See ytid_{conf,list}.ini' > $@
|
|
echo >> $@
|
|
cat $^ >> $@
|
|
|
|
clean:
|
|
rm -rf *.o ytid.cgi ytid.ini
|
|
|