comparison 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
comparison
equal deleted inserted replaced
0:83c4c76d35c5 1:d6ca068c5c36
1 obj = c-ray-mt.o 1 obj = \
2 VPThread_lib/VMS/Histogram/Histogram.o \
3 VPThread_lib/VMS/Histogram/FloatHist.o \
4 VPThread_lib/VMS/CoreLoop.o \
5 VPThread_lib/VMS/VMS.o \
6 VPThread_lib/VMS/MasterLoop.o \
7 VPThread_lib/VMS/Queue_impl/PrivateQueue.o \
8 VPThread_lib/VMS/Hash_impl/PrivateHash.o \
9 VPThread_lib/VMS/DynArray/DynArray.o \
10 VPThread_lib/VPThread_PluginFns.o \
11 VPThread_lib/VPThread_lib.o \
12 VPThread_lib/VMS/Histogram/DblHist.o \
13 VPThread_lib/VPThread.o \
14 VPThread_lib/VMS/probes.o \
15 VPThread_lib/VMS/ProcrContext.o \
16 VPThread_lib/VPThread_Request_Handlers.o \
17 VPThread_lib/VPThread_helper.o \
18 VPThread_lib/VMS/Hash_impl/MurmurHash2.o \
19 VPThread_lib/VMS/vmalloc.o \
20 VPThread_lib/VMS/contextSwitch.o \
21 VPThread_lib/VMS/Queue_impl/BlockingQueue.o \
22 VPThread_lib/VMS/vutilities.o \
23 c-ray-mt.o
24
2 bin = c-ray-mt 25 bin = c-ray-mt
3 26
4 CC = gcc 27 CC = gcc
5 CFLAGS = -O3 -ffast-math 28 CFLAGS = -m64 -ffast-math -fwrapv -fno-omit-frame-pointer -O3 -D VPTHREAD -D APPLICATION=C-RAY -g -Wall
6 29
7 $(bin): $(obj) 30 $(bin): $(obj)
8 $(CC) -o $@ $(obj) -lm -lpthread 31 $(CC) -o $@ $(obj) -lm -lpthread
32
33 %.o : %.c
34 $(CC) -c $(CFLAGS) -o $@ $<
9 35
10 .PHONY: clean 36 .PHONY: clean
11 clean: 37 clean:
12 rm -f $(obj) $(bin) 38 rm -f $(obj) $(bin)
13 39
16 cp $(bin) /usr/local/bin/$(bin) 42 cp $(bin) /usr/local/bin/$(bin)
17 43
18 .PHONY: uninstall 44 .PHONY: uninstall
19 uninstall: 45 uninstall:
20 rm -f /usr/local/bin/$(bin) 46 rm -f /usr/local/bin/$(bin)
47
48
49 # $@ Name des Targets