]> Dogcows Code - chaz/tar/blob - src/makefile.pc
*** empty log message ***
[chaz/tar] / src / makefile.pc
1 # Makefile for GNU tar on MS-DOS.
2 # Copyright (C) 1991 Free Software Foundation, Inc.
3
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2, or (at your option)
7 # any later version.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
18 CC = bcc
19 RM = rm -f
20
21 MODEL = m
22 DEFS = -DNONAMES -DNO_REMOTE -DSTDC_HEADERS=1 -m$(MODEL) -Dmain=_main
23 LIBS =
24
25 CFLAGS = $(DEFS)
26 LDFLAGS = -m$(MODEL)
27
28 OBJ1 = tar.obj create.obj extract.obj buffer.obj getoldopt.obj update.obj gnu.obj mangle.obj
29 OBJ2 = version.obj list.obj names.obj diffarch.obj port.obj fnmatch.obj getopt.obj
30 OBJ3 = getopt1.obj regex.obj getdate.obj alloca.obj tcexparg.obj msd_dir.obj
31 OBJS = $(OBJ1) $(OBJ2) $(OBJ3)
32
33 all: tar
34
35 tar: testpad.h getdate.c $(OBJS)
36 $(RM) testpad.obj
37 $(CC) $(LDFLAGS) -etar *.obj $(LIBS)
38
39 .c.obj:
40 $(CC) -c $(CFLAGS) $<
41
42 # For some reason, Borland C++ 3.1 chokes on this file when given
43 # the full set of -D options.
44 getoldopt.obj: getoldopt.c
45 $(CC) -c -m$(MODEL) -DSTDC_HEADERS getoldopt.c
46
47 testpad.h: testpad.exe
48 testpad
49
50 testpad.exe: testpad.c
51 $(CC) $(LDFLAGS) -etestpad testpad.c $(LIBS)
52
53 clean:
54 $(RM) errs *.obj tar testpad testpad.h
55
56 mostlyclean: clean
57
58 distclean: clean
59
60 realclean: clean
This page took 0.034122 seconds and 4 git commands to generate.