#program: shell example #file Makefile #Rick van der Zwet 0433373 #Operation Systems Ex 2, Part B ifdef DEBUG CXXFLAGS = -Wall -g -DDEBUG=$(DEBUG) endif EXECFILE = sudoku OBJECTS = $(EXECFILE).o all: $(OBJECTS) $(CXX) $(CXXFLAGS) $(OBJECTS) -o $(EXECFILE) build: $(MAKE) all test -x $(EXECFILE) && ./$(EXECFILE) -f puzzel clean: rm -f $(OBJECTS) *.core $(EXECFILE) debug: $(OBJECTS) $(CXX) $(CXXFLAGS) -DDEBUG $(OBJECTS) -o $(EXECFILE) help: README cat README .cpp.o: $(CXX) $(CXXFLAGS) -c $<