Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /trunk/test/MIP/Makefile.in
ViewVC logotype

Diff of /trunk/test/MIP/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 204, Tue Aug 3 16:41:03 2010 UTC revision 3349, Tue Oct 27 15:16:36 2015 UTC
# Line 1  Line 1 
1  CC = gcc  # Makefile.in
2  CFLAGS = -Wall -I@TEEM_DIR@/include  #
3  PROG = mip  # This code is part of the Diderot Project (http://diderot-language.cs.uchicago.edu)
4    #
5    # COPYRIGHT (c) 2015 The University of Chicago
6    # All rights reserved.
7    #
8    # @configure_input@
9    #
10    
11    OS =            $(shell uname -s)
12    
13    SHELL =         @SHELL@
14    CC =            @CC@
15    CFLAGS =        @CFLAGS@
16    
17    DEFINES =       -DDIDEROT -DTEEM_32BIT=1
18    INCLUDES =      -I@TEEM_DIR@/include
19    LDPATHS =       -L@TEEM_DIR@/lib @LDPATHS@
20    ifeq ($(OS),Darwin)
21      LIBS = -framework OpenCL -lteem -lpng -lz
22    else
23      LIBS = -lteem -lpng -lz -lpthread -lm
24    endif
25    
26    CPPFLAGS =      $(INCLUDES) $(DEFINES)
27    CFLAGS =        -g -O3 -W -Wall
28    LDFLAGS =       $(LDPATHS) $(LIBS)
29    
30    TARGET =        mip
31  SRCS = mip_opencl.c  SRCS = mip_opencl.c
 LIBS = -framework OpenCL -L@TEEM_DIR@/lib -lteem -lm  
32    
33  all: $(PROG)  all: $(TARGET)
34    
35    $(TARGET):      $(SRCS)
36            $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $(TARGET) $(SRCS)
37    
38  $(PROG):        $(SRCS)  #################### Cleanup ####################
         $(CC) $(CFLAGS) -o $(PROG) $(SRCS) $(LIBS)  
39    
40  clean:  include @DIDEROT_MKDIR@/clean-rules.gmk
         rm -f $(PROG)  

Legend:
Removed from v.204  
changed lines
  Added in v.3349

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0