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

SCM Repository

[diderot] View of /branches/lamont/src/clinfo/Makefile.in
ViewVC logotype

View of /branches/lamont/src/clinfo/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2081 - (download) (annotate)
Mon Nov 5 23:26:06 2012 UTC (6 years, 9 months ago) by lamonts
File size: 1524 byte(s)
Creating new developmented branch based on vis12
# Makefile
#
# COPYRIGHT (c) 2011 The Diderot Project (http://diderot-language.cs.uchicago.edu)
# All rights reserved.
#
# @configure_input@
#

#
# directories for the install target
#
PREFIX =		@prefix@
INSTALL_BINDIR =	$(PREFIX)/bin
INSTALL_HEAPDIR =	$(INSTALL_BINDIR)/.heap
INSTALL_LIBDIR =	$(PREFIX)/lib
INSTALL_INCDIR =	$(PREFIX)/include

#
# directories for the local-install target
#
SRCDIR =	@DIDEROT_ROOT@/src
LIBDIR =	@DIDEROT_ROOT@/lib
BINDIR =	@DIDEROT_ROOT@/bin
INCDIR =	@DIDEROT_ROOT@/src/include

CL_TARGET_DIR = $(SRCDIR)/lib/cl-target

OS =		$(shell uname -s)

SHELL =		@SHELL@
INSTALL =	@INSTALL@
CC =		@CC@ @CFLAG_M64@

DEFINES =	-DDIDEROT_TARGET_CL -DDIDEROT_SINGLE_PRECISION
INCLUDES =	-I$(INCDIR)
LIBS =		@LIBS_CL@

CPPFLAGS =	@CPPFLAGS@ @CPPFLAGS_CL@ $(INCLUDES) $(DEFINES)
CFLAGS =	@CFLAGS@ @CFLAG_M64@
LDFLAGS =	$(LIBS)

TARGET =	clinfo

.PHONY:		local-install
local-install:	build
	$(INSTALL) $(TARGET) $(BINDIR)

.PHONY:		install
install:	build
	$(INSTALL) $(TARGET) $(INSTALL_BINDIR)

.PHONY:		build
build:		clinfo

clinfo:         main.o clinfo.o
	$(CC) -o clinfo main.o clinfo.o $(LDFLAGS)

main.o:         main.c $(INCDIR)/Diderot/clinfo.h
	$(CC) -c $(CPPFLAGS) $(CFLAGS) main.c

clinfo.o:       $(CL_TARGET_DIR)/clinfo.c $(INCDIR)/Diderot/clinfo.h
	$(CC) -c -o clinfo.o $(CPPFLAGS) $(CFLAGS) $(CL_TARGET_DIR)/clinfo.c

#################### Cleanup ####################

CLEAN_SUBDIRS =

CLEAN_FILES +=

DISTCLEAN_FILES +=	Makefile

DEVCLEAN_FILES +=

include @DIDEROT_MKDIR@/clean-rules.gmk


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