# include the system specific Makefile
#include ../../../../Makefile.$(shell uname)
default: all
all: generate_cc.o
clean:
-rm -f *.o */*.o Makefile.depend
#get warnings, debugging information and optimization
CXXFLAGS = -Wall -pedantic -Wpointer-arith -Wwrite-strings
# CXXFLAGS += -Werror
CXXFLAGS += -ggdb -O3 -funroll-loops
# Note: if the optimizer crashes, we'll leave out the -O3 for those files
CXXFLAGS += -I. -I../* -I../../absyntax
#how to make things from other directories if they are missing
../% /%:
$(MAKE) -C $(@D) $(@F)
test_iec_std_lib: test_iec_std_lib.c iec_std_lib.h
gcc -o test_iec_std_lib test_iec_std_lib.c
test: test_iec_std_lib
Makefile.depend depend:
$(CXX) -MM -MG -I. *.cc \
| perl -pe 's/:/ Makefile.depend:/' > Makefile.depend
include Makefile.depend