forked from acacar/shdp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (21 loc) · 931 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
CC = g++ -O2 -DHAVE_INLINE=1 -DGSL_RANGE_CHECK=0 -Wall
#CC = g++ -ansi -Wall -pedantic
#CFLAGS = -g -Wall -O3 -ffast-math -DHAVE_INLINE -DGSL_RANGE_CHECK_OFF
# CFLAGS = -g -Wall
LDFLAGS = -lgsl -lm -lgslcblas #-latlas
GSL_INCLUDE = /u/chongw/libs/gsl/include
GSL_LIB = /u/chongw/libs/gsl/lib
GSL_INCLUDE_MAC = /usr/local/include/
GSL_LIB_MAC = /usr/local/lib/
LSOURCE = main.cpp utils.cpp stirln.cpp corpus.cpp state.cpp
LHEADER = utils.h stirln.h corpus.h state.h
mac: $(LSOURCE) $(HEADER)
$(CC) -I$(GSL_INCLUDE_MAC) -L$(GSL_LIB_MAC) $(LSOURCE) -o shdp $(LDFLAGS)
mac-d: $(LSOURCE) $(HEADER)
$(CC) -g -I$(GSL_INCLUDE_MAC) -L$(GSL_LIB_MAC) $(LSOURCE) -o shdp $(LDFLAGS)
linux: $(LSOURCE) $(HEADER)
$(CC) -I$(GSL_INCLUDE) -L$(GSL_LIB) $(LSOURCE) -o shdp $(LDFLAGS)
linux-d: $(LSOURCE) $(HEADER)
$(CC) -g -I$(GSL_INCLUDE) -L$(GSL_LIB) $(LSOURCE) -o shdp $(LDFLAGS)
clean:
-rm shdp