view make/common.make @ 2957:17c69c89fe93

[project @ 1997-05-09 18:43:21 by jwe]
author jwe
date Fri, 09 May 1997 18:43:21 +0000
parents 014551a682b9
children
line wrap: on
line source

# common.make -- used by all Makefiles.
SHELL = /bin/sh
@SET_MAKE@
top_srcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@

CPICFLAG = @CPICFLAG@

SHLEXT = @SHLEXT@

SH_LD = @SH_LD@
SH_LDFLAGS = @SH_LDFLAGS@

SHARED_LIBS = @SHARED_LIBS@

CC = @CC@
# CFLAGS is used for both compilation and linking.
CFLAGS = @CFLAGS@ $(XCFLAGS)

# Do not override CPPFLAGS; change XCPPFLAGS, CFLAGS, XCFLAGS, or DEFS instead.
CPPFLAGS = $(XCPPFLAGS) -I. -I$(srcdir) \
	   -I$(kpathsea_parent) -I$(kpathsea_srcdir_parent) \
	   $(prog_cflags) @CPPFLAGS@ $(DEFS) 

%.o : %.c
	$(CC) $(CPPFLAGS) $(CFLAGS) -c $<

pic/%.o : %.c
	$(CC) $(CPPFLAGS) $(CPICFLAG) $(CFLAGS) -c $< -o $@

# Installation.
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@

# This is used to recursively copy a fonts/ or tex/ directory to
# $(fontdir) or $(texinputdir).
# The first arg is `.', and the second is the target directory.
CP_R = cp -r

# This is so kpathsea will get remade automatically if you change
# something in it and recompile from the package directory.
kpathsea_parent = ..
kpathsea_dir = $(kpathsea_parent)/kpathsea
kpathsea_srcdir_parent = $(top_srcdir)/..
kpathsea_srcdir = $(kpathsea_srcdir_parent)/kpathsea
kpathsea = $(kpathsea_dir)/libkpathsea.a

##ifeq ($(CC), gcc)
##XDEFS = -Wall -Wpointer-arith $(warn_more)
##CFLAGS = -g $(XCFLAGS)
##endif
# End of common.make.