Makefile.am 1.58 KB
Newer Older
Clint Adams's avatar
Clint Adams committed
1
AUTOMAKE_OPTIONS=foreign
2
ACLOCAL_AMFLAGS = -I build-aux
Clint Adams's avatar
Clint Adams committed
3 4
SUBDIRS=scripts doc test

5
noinst_LTLIBRARIES = libcommunicate.la libmacosx.la
Clint Adams's avatar
Clint Adams committed
6 7
libcommunicate_la_SOURCES = communicate.c

8 9
libmacosx_la_SOURCES = libfakeroot_inode64.c libfakeroot_unix2003.c patchattr.h

Clint Adams's avatar
Clint Adams committed
10
lib_LTLIBRARIES=libfakeroot.la
11
libfakeroot_la_SOURCES=libfakeroot.c statconv/glibc/linux/alpha/stats.h wrapdef.h  wrapstruct.h communicate.h
12
libfakeroot_la_LDFLAGS=-release 0
13
if MACOSX
14
libfakeroot_la_DEPENDENCIES=wrapdef.h wrapstruct.h libcommunicate.la libmacosx.la $(LTLIBOBJS)
15 16
libfakeroot_la_LIBADD = libcommunicate.la libmacosx.la $(LTLIBOBJS)
else !MACOSX
17
libfakeroot_la_DEPENDENCIES=wrapdef.h wrapstruct.h libcommunicate.la $(LTLIBOBJS)
18
libfakeroot_la_LIBADD = libcommunicate.la $(LTLIBOBJS)
19
endif !MACOSX
Clint Adams's avatar
Clint Adams committed
20 21 22 23 24 25 26 27 28 29 30

bin_PROGRAMS=faked
faked_SOURCES = faked.c
faked_LDADD = libcommunicate.la

simple_SOURCES=simple.c
noinst_PROGRAMS=simple

CLEANFILES= wrapdef.h wrapstruct.h wrapped.h wraptmpf.h
DISTCLEANFILES = fakerootconfig.h

31
EXTRA_DIST=wrapawk wrapawk_macosx wrapfunc.inp           \
Clint Adams's avatar
Clint Adams committed
32
	   message.h \
33
	   DEBUG BUGS \
34 35
	   setenv.c \
	   preroll
Clint Adams's avatar
Clint Adams committed
36 37 38

CLEAN_FILES=fakerootconfig.h

39 40 41 42
if MACOSX
wrapped.h wrapdef.h wrapstruct.h wraptmpf.h:wrapawk_macosx wrapfunc.inp
	awk -f $(srcdir)/wrapawk_macosx < $(srcdir)/wrapfunc.inp
else !MACOSX
Clint Adams's avatar
Clint Adams committed
43
wrapped.h wrapdef.h wrapstruct.h wraptmpf.h:wrapawk wrapfunc.inp
44
	awk -f $(srcdir)/wrapawk < $(srcdir)/wrapfunc.inp
45
endif !MACOSX
Clint Adams's avatar
Clint Adams committed
46

47
libfakeroot.lo:libfakeroot.c wrapdef.h wrapstruct.h wraptmpf.h
Clint Adams's avatar
Clint Adams committed
48 49 50 51 52 53 54 55

fakerootconfig.h: ./config.status
	CONFIG_FILES= CONFIG_HEADERS= /bin/sh ./config.status


#Local variables:
#mode: makefile
#End: