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

SCM Repository

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

View of /trunk/src/clinfo/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1671 - (download) (annotate)
Sun Dec 4 10:56:10 2011 UTC (7 years, 7 months ago) by jhr
File size: 1499 byte(s)
  Merging changes from pure-cfg branch back into trunk
# 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

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$(SRCDIR)/include -I$(CL_TARGET_DIR)
LIBS =		@CL_LIBS@

CPPFLAGS =	@CPPFLAGS@ $(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 $(CL_TARGET_DIR)/clinfo.h
	$(CC) -c $(CPPFLAGS) $(CFLAGS) main.c

clinfo.o:       $(CL_TARGET_DIR)/clinfo.c $(CL_TARGET_DIR)/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