diff Makefile @ 1:3840d91821c4

VPThread version is working
author Merten Sach <msach@mailbox.tu-berlin.de>
date Tue, 16 Aug 2011 20:31:31 +0200
parents 4ae1d7ffb1ae
children 535c119ba090
line diff
     1.1 --- a/Makefile	Wed Aug 03 14:26:31 2011 +0200
     1.2 +++ b/Makefile	Tue Aug 16 20:31:31 2011 +0200
     1.3 @@ -1,11 +1,37 @@
     1.4 -obj = c-ray-mt.o
     1.5 +obj = 	\
     1.6 +	VPThread_lib/VMS/Histogram/Histogram.o \
     1.7 +	VPThread_lib/VMS/Histogram/FloatHist.o \
     1.8 +	VPThread_lib/VMS/CoreLoop.o \
     1.9 +	VPThread_lib/VMS/VMS.o \
    1.10 +	VPThread_lib/VMS/MasterLoop.o \
    1.11 +	VPThread_lib/VMS/Queue_impl/PrivateQueue.o \
    1.12 +	VPThread_lib/VMS/Hash_impl/PrivateHash.o \
    1.13 +	VPThread_lib/VMS/DynArray/DynArray.o \
    1.14 +	VPThread_lib/VPThread_PluginFns.o \
    1.15 +	VPThread_lib/VPThread_lib.o \
    1.16 +	VPThread_lib/VMS/Histogram/DblHist.o \
    1.17 +	VPThread_lib/VPThread.o \
    1.18 +	VPThread_lib/VMS/probes.o \
    1.19 +	VPThread_lib/VMS/ProcrContext.o \
    1.20 +	VPThread_lib/VPThread_Request_Handlers.o \
    1.21 +	VPThread_lib/VPThread_helper.o \
    1.22 +	VPThread_lib/VMS/Hash_impl/MurmurHash2.o \
    1.23 +	VPThread_lib/VMS/vmalloc.o \
    1.24 +	VPThread_lib/VMS/contextSwitch.o \
    1.25 +	VPThread_lib/VMS/Queue_impl/BlockingQueue.o \
    1.26 +	VPThread_lib/VMS/vutilities.o \
    1.27 +	c-ray-mt.o
    1.28 +
    1.29  bin = c-ray-mt
    1.30  
    1.31  CC = gcc
    1.32 -CFLAGS = -O3 -ffast-math
    1.33 +CFLAGS = -m64 -ffast-math -fwrapv -fno-omit-frame-pointer -O3 -D VPTHREAD -D APPLICATION=C-RAY -g -Wall
    1.34  
    1.35  $(bin): $(obj)
    1.36  	$(CC) -o $@ $(obj) -lm -lpthread
    1.37 +	
    1.38 +%.o : %.c
    1.39 +	$(CC) -c $(CFLAGS) -o $@ $<
    1.40  
    1.41  .PHONY: clean
    1.42  clean:
    1.43 @@ -18,3 +44,6 @@
    1.44  .PHONY: uninstall
    1.45  uninstall:
    1.46  	rm -f /usr/local/bin/$(bin)
    1.47 +
    1.48 +
    1.49 +# $@ Name des Targets