Skip to content

Commit

Permalink
Makefile cleanup
Browse files Browse the repository at this point in the history
Also make clang available as an option to compile
  • Loading branch information
Viral Shah committed May 17, 2011
1 parent 2051eed commit d402e49
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
11 changes: 4 additions & 7 deletions Make.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,17 @@ OS = $(shell uname)
DOWNLOAD = curl -O
#DOWNLOAD = wget

CC = gcc
CC = gcc
CXX = g++
FC = gfortran
#CC = $(EXTROOT)/bin/clang
#CXX = $(EXTROOT)/bin/clang++
CFLAGS = -std=gnu99 -fPIC -D_FORTIFY_SOURCE=0
CXXFLAGS = -fPIC -D_FORTIFY_SOURCE=0
FC = gfortran
DEBUGFLAGS = -ggdb3 -DDEBUG $(FLAGS)
SHIPFLAGS = -O3 -DNDEBUG $(FLAGS)

# Different REPLs. Currently, only one of these can be chosen
DEFAULT_REPL = readline
REPL_READLINE = 1
#REPL_BASIC = 1
#REPL_CLOUD = 1

JULIAGC = MARKSWEEP
USE_COPY_STACKS = 1

Expand Down
7 changes: 1 addition & 6 deletions ui/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,7 @@ LIBS = -L$(EXTROOT)/lib -lutil -ldl -lm $(OSLIBS) -lpthread
LLTDIR = $(JULIAHOME)/src/support
FLISPDIR = $(JULIAHOME)/src/flisp
MONGOOSE = $(JULIAHOME)/external/mongoose
ifeq ($(OS), Darwin)
READLINE = $(JULIAHOME)/lib/libreadline.$(SHLIB_EXT)
endif
ifeq ($(OS), Linux)
READLINE = -lncurses -lreadline
endif
READLINE = -L$(JULIAHOME)/lib/ -lncurses -lreadline

FLAGS = -falign-functions -Wall -Wno-strict-aliasing \
-I$(JULIAHOME)/src -I$(LLTDIR) -I$(FLISPDIR) \
Expand Down

0 comments on commit d402e49

Please sign in to comment.