diff Makefile @ 0:e69e4c2d612a

Initial pthreads version
author Merten Sach <msach@mailbox.tu-berlin.de>
date Wed, 03 Aug 2011 19:30:34 +0200
parents
children 8e7bdab2840f
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Makefile	Wed Aug 03 19:30:34 2011 +0200
     1.3 @@ -0,0 +1,43 @@
     1.4 +CC = gcc
     1.5 +CFLAGS = -m64 -ffast-math -fwrapv -fno-omit-frame-pointer -O0 -D VPTHREAD -D APPLICATION=KMEANS -g -Wall
     1.6 +LDFLAGS = 
     1.7 +
     1.8 +LIBS = -lm -lpthread
     1.9 +TARGET = kmeans
    1.10 +OBJ = 	\
    1.11 +	VPThread_lib/VMS/Histogram/Histogram.o \
    1.12 +	VPThread_lib/VMS/Histogram/FloatHist.o \
    1.13 +	VPThread_lib/VMS/CoreLoop.o \
    1.14 +	VPThread_lib/VMS/VMS.o \
    1.15 +	VPThread_lib/VMS/MasterLoop.o \
    1.16 +	VPThread_lib/VMS/Queue_impl/PrivateQueue.o \
    1.17 +	VPThread_lib/VMS/Hash_impl/PrivateHash.o \
    1.18 +	VPThread_lib/VMS/DynArray/DynArray.o \
    1.19 +	VPThread_lib/VPThread_PluginFns.o \
    1.20 +	VPThread_lib/VPThread_lib.o \
    1.21 +	VPThread_lib/VMS/Histogram/DblHist.o \
    1.22 +	VPThread_lib/VPThread.o \
    1.23 +	VPThread_lib/VMS/probes.o \
    1.24 +	VPThread_lib/VMS/ProcrContext.o \
    1.25 +	VPThread_lib/VPThread_Request_Handlers.o \
    1.26 +	VPThread_lib/VPThread_helper.o \
    1.27 +	VPThread_lib/VMS/Hash_impl/MurmurHash2.o \
    1.28 +	VPThread_lib/VMS/vmalloc.o \
    1.29 +	VPThread_lib/VMS/contextSwitch.o \
    1.30 +	VPThread_lib/VMS/Queue_impl/BlockingQueue.o \
    1.31 +	VPThread_lib/VMS/vutilities.o \
    1.32 +	wtime.o \
    1.33 +        file_io.o \
    1.34 +	pthreads_kmeans.o \
    1.35 +	pthreads_main.o 
    1.36 +
    1.37 +all: $(TARGET)
    1.38 +
    1.39 +$(TARGET): $(OBJ)
    1.40 +	$(CC) -o $@ $(OBJ) $(LDFLAGS) $(LIBS)
    1.41 +	
    1.42 +%.o : %.c
    1.43 +	$(CC) -c $(CFLAGS) -o $@ $<
    1.44 +
    1.45 +clean:
    1.46 +	rm -f $(OBJ) $(TARGET)