annotate Makefile @ 5:535c119ba090

rearranged code to fit project patterns
author Me@portablequad
date Fri, 28 Oct 2011 06:56:35 -0700
parents 3840d91821c4
children
rev   line source
msach@1 1 obj = \
Me@5 2 src/VPThread_lib/VMS/Histogram/Histogram.o \
Me@5 3 src/VPThread_lib/VMS/Histogram/FloatHist.o \
Me@5 4 src/VPThread_lib/VMS/CoreLoop.o \
Me@5 5 src/VPThread_lib/VMS/VMS.o \
Me@5 6 src/VPThread_lib/VMS/MasterLoop.o \
Me@5 7 src/VPThread_lib/VMS/Queue_impl/PrivateQueue.o \
Me@5 8 src/VPThread_lib/VMS/Hash_impl/PrivateHash.o \
Me@5 9 src/VPThread_lib/VMS/DynArray/DynArray.o \
Me@5 10 src/VPThread_lib/VPThread_PluginFns.o \
Me@5 11 src/VPThread_lib/VPThread_lib.o \
Me@5 12 src/VPThread_lib/VMS/Histogram/DblHist.o \
Me@5 13 src/VPThread_lib/VPThread.o \
Me@5 14 src/VPThread_lib/VMS/probes.o \
Me@5 15 src/VPThread_lib/VMS/ProcrContext.o \
Me@5 16 src/VPThread_lib/VPThread_Request_Handlers.o \
Me@5 17 src/VPThread_lib/VPThread_helper.o \
Me@5 18 src/VPThread_lib/VMS/Hash_impl/MurmurHash2.o \
Me@5 19 src/VPThread_lib/VMS/vmalloc.o \
Me@5 20 src/VPThread_lib/VMS/contextSwitch.o \
Me@5 21 src/VPThread_lib/VMS/Queue_impl/BlockingQueue.o \
Me@5 22 src/VPThread_lib/VMS/vutilities.o \
Me@5 23 src/Application/main.o
msach@1 24
Me@5 25 bin = task_size_vs_exe_time
Me@5 26
Me@5 27 NUM_CORES=4
msach@0 28
msach@0 29 CC = gcc
Me@5 30 CFLAGS = -m64 -ffast-math -fwrapv -fno-omit-frame-pointer -O3 -D VPTHREAD -D APPLICATION=C-RAY -D NUM_CORES=$(NUM_CORES) -g -Wall
msach@0 31
msach@0 32 $(bin): $(obj)
msach@0 33 $(CC) -o $@ $(obj) -lm -lpthread
msach@1 34
msach@1 35 %.o : %.c
msach@1 36 $(CC) -c $(CFLAGS) -o $@ $<
msach@0 37
msach@0 38 .PHONY: clean
msach@0 39 clean:
msach@0 40 rm -f $(obj) $(bin)
msach@0 41
msach@0 42 .PHONY: install
msach@0 43 install:
msach@0 44 cp $(bin) /usr/local/bin/$(bin)
msach@0 45
msach@0 46 .PHONY: uninstall
msach@0 47 uninstall:
msach@0 48 rm -f /usr/local/bin/$(bin)
msach@1 49
msach@1 50
msach@1 51 # $@ Name des Targets