Commit f640d9ae authored by Andreas Freise's avatar Andreas Freise
Browse files

making formulc only compile onjects.

parent 3e7edb35
.PHONY: formulc
# set the default compiler # set the default compiler
ifeq "$(CC)" "" ifeq "$(CC)" ""
CC = gcc CC = gcc
...@@ -22,12 +25,12 @@ ifeq ($(ARCH),mac) ...@@ -22,12 +25,12 @@ ifeq ($(ARCH),mac)
CFLAGS = -Wall -W -pipe -O3 -arch $(CPUARCH) -mmacosx-version-min=10.5 -ffast-math -fexpensive-optimizations -fomit-frame-pointer -funroll-loops CFLAGS = -Wall -W -pipe -O3 -arch $(CPUARCH) -mmacosx-version-min=10.5 -ffast-math -fexpensive-optimizations -fomit-frame-pointer -funroll-loops
endif endif
formulc : formulc.o standalone.o random.o formulc : formulc.o random.o
ifeq "$(CC)" "icc" #ifeq "$(CC)" "icc"
$(CC) -o formulc formulc.o standalone.o random.o -lguide -lpthread # $(CC) -o formulc formulc.o standalone.o random.o -lguide -lpthread
else #else
$(CC) -o formulc formulc.o standalone.o random.o -lm # $(CC) -o formulc formulc.o standalone.o random.o -lm
endif #endif
formumr.o : formulc.c formulc.h formumr.o : formulc.c formulc.h
$(CC) -c $(CFLAGS) formulc.c -o formumr.o -DMY_RND $(CC) -c $(CFLAGS) formulc.c -o formumr.o -DMY_RND
formulc.o : formulc.c formulc.h formulc.o : formulc.c formulc.h
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment