Last change
on this file since 95 was 2, checked in by Rick van der Zwet, 15 years ago |
Initial import of data of old repository ('data') worth keeping (e.g. tracking
means of URL access statistics)
|
File size:
509 bytes
|
Rev | Line | |
---|
[2] | 1 | #program: shell example
|
---|
| 2 | #file Makefile
|
---|
| 3 | #Rick van der Zwet 0433373
|
---|
| 4 | #Operation Systems Ex 2, Part B
|
---|
| 5 |
|
---|
| 6 |
|
---|
| 7 | ifdef DEBUG
|
---|
| 8 | CXXFLAGS = -Wall -g -DDEBUG=$(DEBUG)
|
---|
| 9 | endif
|
---|
| 10 |
|
---|
| 11 | EXECFILE = sudoku
|
---|
| 12 | OBJECTS = $(EXECFILE).o
|
---|
| 13 |
|
---|
| 14 | all: $(OBJECTS)
|
---|
| 15 | $(CXX) $(CXXFLAGS) $(OBJECTS) -o $(EXECFILE)
|
---|
| 16 |
|
---|
| 17 | build:
|
---|
| 18 | $(MAKE) all
|
---|
| 19 | test -x $(EXECFILE) && ./$(EXECFILE) -f puzzel
|
---|
| 20 |
|
---|
| 21 | clean:
|
---|
| 22 | rm -f $(OBJECTS) *.core $(EXECFILE)
|
---|
| 23 |
|
---|
| 24 | debug: $(OBJECTS)
|
---|
| 25 | $(CXX) $(CXXFLAGS) -DDEBUG $(OBJECTS) -o $(EXECFILE)
|
---|
| 26 |
|
---|
| 27 | help: README
|
---|
| 28 | cat README
|
---|
| 29 |
|
---|
| 30 | .cpp.o:
|
---|
| 31 | $(CXX) $(CXXFLAGS) -c $<
|
---|
Note:
See
TracBrowser
for help on using the repository browser.