*** empty log message ***
[debian/tar] / src / makefile.pc
1 # Makefile for GNU tar on MS-DOS using Turbo C 2.0.
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 = tcc
19 RM = rm -f
20
21 MODEL = m
22 DEFS = -DNONAMES -DNO_REMOTE -DNO_MTIO -DSTDC_HEADERS -m$(MODEL) -Dmain=_main
23 LIBS =
24 DEF_AR_FILE = tar.out
25 DEFBLOCKING = 20
26
27 CFLAGS = -I. $(DEFS) \
28         -DDEF_AR_FILE="$(DEF_AR_FILE)" \
29         -DDEFBLOCKING=$(DEFBLOCKING)
30 LDFLAGS = -m$(MODEL)
31
32 OBJ1 =  tar.obj create.obj extract.obj buffer.obj getoldopt.obj update.obj gnu.obj mangle.obj
33 OBJ2 =  version.obj list.obj names.obj diffarch.obj port.obj fnmatch.obj getopt.obj
34 OBJ3 =  getopt1.obj regex.obj getdate.obj alloca.obj tcexparg.obj msd_dir.obj
35 OBJS =  $(OBJ1) $(OBJ2) $(OBJ3)
36
37 all:    tar
38
39 tar:    testpad.h getdate.c $(OBJS)
40         $(RM) testpad.obj
41         $(CC) $(LDFLAGS) -etar *.obj $(LIBS)
42
43 .c.obj:
44         $(CC) -c $(CFLAGS) $<
45
46 testpad.h: testpad.exe
47         testpad
48
49 testpad.exe: testpad.c
50         $(CC) $(LDFLAGS) -etestpad testpad.c $(LIBS)
51
52 clean:
53         $(RM) errs *.obj tar testpad testpad.h
54
55 mostlyclean: clean
56
57 distclean: clean
58
59 realclean: clean