view dynodump/Makefile @ 74:54cc21c15cbb r20-0b32

Import from CVS: tag r20-0b32
author cvs
date Mon, 13 Aug 2007 09:04:33 +0200
parents
children
line wrap: on
line source

SHELL = /bin/sh
CC=gcc
CFLAGS=-m486 -g -O4 -malign-loops=2 -malign-jumps=2 -malign-functions=2
ARCH=
srcdir=/usr/local/xemacs/xemacs-20.0-b32/dynodump

VPATH=/usr/local/xemacs/xemacs-20.0-b32/dynodump
INCLUDES = -I${srcdir} -I${srcdir}/$(ARCH)
ALL_CFLAGS = ${CFLAGS} -fpic  ${INCLUDES}
OBJS = _relocate.o dynodump.o syms.o uninit.o
.c.o:
	$(CC) -c $(ALL_CFLAGS) $<
all::
dynodump.so: ${srcdir}/_dynodump.h $(OBJS)
	$(CC) -o dynodump.so -G $(OBJS) -lelf -lmapmalloc
_relocate.o: ${srcdir}/$(ARCH)/_relocate.c
	$(CC) -c $(ALL_CFLAGS) ${srcdir}/$(ARCH)/_relocate.c
uninit.o: ${srcdir}/$(ARCH)/uninit.c
	$(CC) -c $(ALL_CFLAGS) ${srcdir}/$(ARCH)/uninit.c
mostlyclean:
	-rm -f *.o \#*
clean: mostlyclean
	-rm -f *.so *.so.1
distclean: clean
	-rm -f Makefile Makefile.in
realclean: distclean
	rm -f TAGS
versionclean:
	true
extraclean: realclean
	-rm -f *~ \#*