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