diff options
| author | manuel <manuel@nc8430.lan> | 2009-05-26 14:49:37 +0200 |
|---|---|---|
| committer | manuel <manuel@nc8430.lan> | 2009-05-26 14:49:37 +0200 |
| commit | 1a60d0c2a8eeef3b39ef276f0f3552552a1519b1 (patch) | |
| tree | 038e7ea34e7093f959372885869234b90734331e /ue4/mycpu/Makefile | |
| parent | 1b2db0dfe36f134850965276ba62700dba02da4d (diff) | |
| download | ooprog-1a60d0c2a8eeef3b39ef276f0f3552552a1519b1.tar.gz ooprog-1a60d0c2a8eeef3b39ef276f0f3552552a1519b1.tar.bz2 ooprog-1a60d0c2a8eeef3b39ef276f0f3552552a1519b1.zip | |
adding ue4 (copy from ue3)
Diffstat (limited to 'ue4/mycpu/Makefile')
| -rw-r--r-- | ue4/mycpu/Makefile | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/ue4/mycpu/Makefile b/ue4/mycpu/Makefile new file mode 100644 index 0000000..0dbb51a --- /dev/null +++ b/ue4/mycpu/Makefile | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | # Makefile for mycpu | ||
| 2 | # Author: Guenther Neuwirth (0626638), Manuel Mausz (0728348) | ||
| 3 | # Created: 26.05.2009 | ||
| 4 | |||
| 5 | CXX= g++ | ||
| 6 | LD= $(CXX) | ||
| 7 | DEBUGFLAGS= -DNDEBUG | ||
| 8 | INCLUDE_PATH= -I/usr/local/include | ||
| 9 | CXXFLAGS= -O -ansi -pedantic-errors -Wall -Wno-long-long $(INCLUDE_PATH) $(DEBUGFLAGS) | ||
| 10 | LDFLAGS= | ||
| 11 | LIBS= -L/usr/local/lib -lboost_program_options | ||
| 12 | |||
| 13 | BIN= mycpu | ||
| 14 | OBJS= cinstruction.o instructions.o cprogram.o ccpu.o mycpu.o | ||
| 15 | HEADERS= cdat.h cmem.h cinstruction.h instructions.h cprogram.h cdisplay.h displays.h ccpu.h | ||
| 16 | |||
| 17 | .SUFFIXES: .cpp .o | ||
| 18 | |||
| 19 | all: $(BIN) | ||
| 20 | |||
| 21 | .cpp.o: | ||
| 22 | $(CXX) $(CXXFLAGS) -c $< -o $@ | ||
| 23 | |||
| 24 | $(OBJS): $(HEADERS) | ||
| 25 | |||
| 26 | $(BIN): $(OBJS) | ||
| 27 | $(LD) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) | ||
| 28 | |||
| 29 | debug: | ||
| 30 | @$(MAKE) all "DEBUGFLAGS=-DDEBUG -g" | ||
| 31 | |||
| 32 | clean: | ||
| 33 | rm -f $(OBJS) $(BIN) | ||
| 34 | |||
| 35 | run test: all | ||
| 36 | @./test/test.sh | ||
| 37 | |||
| 38 | .PHONY: clean | ||
| 39 | |||
| 40 | # vim600: noet sw=8 ts=8 | ||
