Created
September 20, 2013 15:23
-
-
Save moretea/6639200 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| commit e69b947e134420e1a538220de5bf5501390a6e43 | |
| Author: Maarten Hoogendoorn <maarten@moretea.nl> | |
| Date: Thu Sep 12 10:12:56 2013 +0200 | |
| Adapt Makefile so that it runs both on my machine as the UvA machines | |
| diff --git a/Makefile b/Makefile | |
| index 49430e4..71b0200 100644 | |
| --- a/Makefile | |
| +++ b/Makefile | |
| @@ -24,10 +24,16 @@ | |
| # THE SOFTWARE. | |
| # | |
| +HOSTNAME=$(shell hostname) | |
| + | |
| # Note: This Makefile requires GNU Make 3.81 or newer | |
| # Location of the SystemC library files | |
| -SYSTEMC_PATH = /home/rdouma1/systemc | |
| +ifeq ($(HOSTNAME),maarten-laptop) | |
| +SYSTEMC_PATH=/home/maarten/vu/ms/aca/sysclib | |
| +else | |
| +SYSTEMC_PATH=/home/rdouma1/systemc | |
| +endif | |
| SYSTEMC_INCLUDE = $(SYSTEMC_PATH)/include | |
| # Figure out on what processor/architecture we compile | |
| @@ -57,8 +63,14 @@ ACALIB = $(ACALIB_DIR)aca2013.cpp | |
| # Compiler settings | |
| +ifeq ($(HOSTNAME),maarten-laptop) | |
| +CC = clang++ | |
| +CFLAGS = -Wall -O2 -g3 | |
| +else | |
| CC = g++ | |
| CFLAGS = -Wall -O2 | |
| +endif | |
| + | |
| INCLUDES = -I $(SYSTEMC_INCLUDE) -I $(ACALIB_DIR) | |
| LIBS = -lsystemc | |
| LIBDIR = -L$(SYSTEMC_LIBDIR) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment