From 1a60d0c2a8eeef3b39ef276f0f3552552a1519b1 Mon Sep 17 00:00:00 2001 From: manuel Date: Tue, 26 May 2009 14:49:37 +0200 Subject: adding ue4 (copy from ue3) --- ue4/mycpu/Makefile | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 ue4/mycpu/Makefile (limited to 'ue4/mycpu/Makefile') 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 @@ +# Makefile for mycpu +# Author: Guenther Neuwirth (0626638), Manuel Mausz (0728348) +# Created: 26.05.2009 + +CXX= g++ +LD= $(CXX) +DEBUGFLAGS= -DNDEBUG +INCLUDE_PATH= -I/usr/local/include +CXXFLAGS= -O -ansi -pedantic-errors -Wall -Wno-long-long $(INCLUDE_PATH) $(DEBUGFLAGS) +LDFLAGS= +LIBS= -L/usr/local/lib -lboost_program_options + +BIN= mycpu +OBJS= cinstruction.o instructions.o cprogram.o ccpu.o mycpu.o +HEADERS= cdat.h cmem.h cinstruction.h instructions.h cprogram.h cdisplay.h displays.h ccpu.h + +.SUFFIXES: .cpp .o + +all: $(BIN) + +.cpp.o: + $(CXX) $(CXXFLAGS) -c $< -o $@ + +$(OBJS): $(HEADERS) + +$(BIN): $(OBJS) + $(LD) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) + +debug: + @$(MAKE) all "DEBUGFLAGS=-DDEBUG -g" + +clean: + rm -f $(OBJS) $(BIN) + +run test: all + @./test/test.sh + +.PHONY: clean + +# vim600: noet sw=8 ts=8 -- cgit v1.2.3