summaryrefslogtreecommitdiff
path: root/file/src/Makefile.am
blob: 9fa447c83938d8bc3c63be02f17b7dec3552c751 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
LINT = splint
BUILT_SOURCES = listobjs

#MAGIC	 = $(pkgdatadir)/magic
pkglibdir =  @prefix@/lib/rpm
MAGIC    = $(pkglibdir)/magic

AM_CPPFLAGS = -DMAGIC='"$(MAGIC)"'

include_HEADERS = # magic.h
noinst_HEADERS = file.h magic.h names.h patchlevel.h readelf.h tar.h

#lib_LTLIBRARIES = libmagic.la
#usrlibdir = $(libdir)@MARK64@
#usrlib_LTLIBRARIES = libmagic.la
noinst_LTLIBRARIES = libmagic.la

libmagic_la_SOURCES = magic.c apprentice.c softmagic.c ascmagic.c \
	compress.c is_tar.c readelf.c print.c fsmagic.c \
	funcs.c apptype.c
libmagic_la_LDFLAGS = -version-info 1:0:0

#bin_PROGRAMS = file
noinst_PROGRAMS = file
file_SOURCES = file.c
file_LDFLAGS = -all-static
file_LDADD = libmagic.la

listobjs:
	@echo $(libmagic_la_SOURCES:.c=.lo) > $@
                                                                                
.PHONY: lint
lint:
	$(LINT)  $(DEFS) $(INCLUDES) $(file_SOURCES) $(libmagic_la_SOURCES) $(include_HEADERS) $(noinst_HEADERS)
                                                                                
.PHONY: sources
sources:
	@echo $(libmagic_la_SOURCES:%=file/src/%)