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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1116 - (download) (annotate)
Thu May 5 04:49:02 2011 UTC (8 years, 6 months ago) by jhr
File size: 1329 byte(s)
  more merging of pure-cfg changes back into trunk
# Makefile
#
# COPYRIGHT (c) 2010 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
HEAPDIR =	$(BINDIR)/.heap

OS =		$(shell uname -s)

SHELL =		@SHELL@
INSTALL =	@INSTALL@
CC =		@CC@ @CFLAG_M64@ -std=c99

DEFINES =	-DDIDEROT
INCLUDES =	-I@TEEM_DIR@/include
LDPATHS =	-L@TEEM_DIR@/lib @LDPATHS@
LIBS =		-lteem -lpng -lz @PTHREAD_LIBS@ @LIBM@

CPPFLAGS =	$(INCLUDES) $(DEFINES)
CFLAGS =	-g -O3 -W -Wall
LDFLAGS =	$(LDPATHS) $(LIBS)
ifeq ($(OS),Linux)
  LDFLAGS +=	-Wl,-rpath=@TEEM_DIR@/lib
endif

TARGET =	dnorm

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

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

.PHONY:		build
build:		dnorm

dnorm:	dnorm.c
	$(CC) $(CPPFLAGS) $(CFLAGS) -o dnorm dnorm.c $(LDFLAGS)

#################### 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