1# Makefile for file(1) cmd. 
2# Copyright (c) Ian F. Darwin 86/09/01 - see LEGAL.NOTICE.
3# @(#)$Id: Makefile,v 1.1 2000/10/10 20:40:36 beck Exp $
4#
5# This software is not subject to any license of the American Telephone
6# and Telegraph Company or of the Regents of the University of California.
7#
8# Permission is granted to anyone to use this software for any purpose on
9# any computer system, and to alter it and redistribute it freely, subject
10# to the following restrictions:
11#
12# 1. The author is not responsible for the consequences of use of this
13#    software, no matter how awful, even if they arise from flaws in it.
14#
15# 2. The origin of this software must not be misrepresented, either by
16#    explicit claim or by omission.  Since few users ever read sources,
17#    credits must appear in the documentation.
18#
19# 3. Altered versions must be plainly marked as such, and must not be
20#    misrepresented as being the original software.  Since few users
21#    ever read sources, credits must appear in the documentation.
22#
23# 4. This notice may not be removed or altered.
24#
25# Makefile altered for mkhybrid James Pearson 19/5/98
26#
27VERSION	= 3.22
28DEFS	=
29#DEFS	= -DMAIN
30#DEFS	= -DMAGIC='"$(MAGIC)"' -DBUILTIN_ELF # -Dvoid=int
31CC	= cc
32COPTS	= -g 		# newer compilers allow both; else drop -O
33# For truly antique environments, use this for (dummy) include files:
34#COPTS	= -O # -Ilocalinc
35CFLAGS	= $(COPTS) $(DEFS)
36LDFLAGS	= $(COPTS) # -Bstatic	# older gdb couldn't handle shared libs
37RANLIB  = ranlib
38TARGET  = libfile.a
39ARFLAGS = rc
40
41# There are no system-dependant configuration options (except maybe CFLAGS).
42# Uncomment any of these that is missing from your "standard" library.
43
44SRCS = file.c apprentice.c softmagic.c 
45
46OBJS = file.o apprentice.o softmagic.o
47
48all ::		$(TARGET)
49
50$(TARGET): 	$(OBJS)
51		ar $(ARFLAGS) $@ $(OBJS)
52		$(RANLIB) $@
53
54clean:
55		rm -f *.o core $(TARGET)
56
57$(OBJS):	file.h patchlevel.h
58