~ubuntu-branches/ubuntu/feisty/cproto/feisty

« back to all changes in this revision

Viewing changes to msdos/micrsoft.mak

  • Committer: Bazaar Package Importer
  • Author(s): Carsten Leonhardt
  • Date: 2000-09-02 21:14:55 UTC
  • Revision ID: james.westby@ubuntu.com-20000902211455-ixe8p17zhnuk6jft
Tags: upstream-4.6d
ImportĀ upstreamĀ versionĀ 4.6d

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# $Id: micrsoft.mak,v 4.1 1998/01/20 00:19:18 cthuang Exp $
 
2
#
 
3
# Microsoft C makefile for C prototype generator
 
4
# tested with:
 
5
#       nmake 1.11.
 
6
#       cl 6.00ax.
 
7
 
 
8
# Define MSDOS for MS-DOS compatibility.
 
9
# Define TURBO_CPP to pipe the input through the Turbo C preprocessor.
 
10
DEFINES = -DMSDOS -DSTDC_HEADERS
 
11
 
 
12
MSC_TOP = d:\msc60ax
 
13
 
 
14
# names from MKS tools (ran out of memory in lex; used unix output)
 
15
Y_TAB = ytab
 
16
LEX_YY = lex_yy
 
17
 
 
18
LEX = lex
 
19
YACC = yacc
 
20
CC = cl
 
21
LINK = link
 
22
CFLAGS = -EM -AL $(DEFINES)
 
23
LIBS = $(MSC_TOP)\lib\setargv.obj
 
24
LDFLAGS = /F 1000
 
25
 
 
26
DIST1 = README CHANGES cproto.man
 
27
DIST2 = cproto.1 borland.mak micrsoft.mak makefile.in lex.l grammar.y
 
28
DIST3 = system.h cproto.h patchlev.h semantic.h symbol.h
 
29
DIST4 = cproto.c lintlibs.c popen.c semantic.c strkey.c strstr.c symbol.c
 
30
 
 
31
OBJECTS = cproto.obj lintlibs.obj getopt.obj semantic.obj strkey.obj symbol.obj $(Y_TAB).obj popen.obj
 
32
 
 
33
all: cproto.exe
 
34
 
 
35
cproto.exe: $(OBJECTS) micrsoft.lnk
 
36
        $(LINK) @micrsoft.lnk
 
37
 
 
38
micrsoft.lnk:
 
39
        for %%i in ( *.obj ) do echo %%i + >>$@
 
40
        echo >>$@
 
41
        echo cproto.exe >>$@
 
42
        echo >>$@
 
43
        echo $(LIBS); >>$@
 
44
 
 
45
$(Y_TAB).obj: $(Y_TAB).c $(LEX_YY).c system.h cproto.h symbol.h semantic.h
 
46
        $(CC) $(CFLAGS) -c $*.c
 
47
 
 
48
$(Y_TAB).c: grammar.y
 
49
        $(YACC) grammar.y
 
50
 
 
51
$(LEX_YY).c: lex.l
 
52
        $(LEX) lex.l
 
53
 
 
54
cproto.man: cproto.1
 
55
        cawf -man $*.1 | bsfilt - >$*.man
 
56
 
 
57
clean:
 
58
        erase *.obj
 
59
        erase *.bak
 
60
        erase *.log
 
61
        erase $(LEX_YY).c
 
62
        erase $(Y_TAB).c
 
63
        erase micrsoft.lnk
 
64
        erase cproto.exe
 
65
 
 
66
ci:
 
67
        ci -u3 $(DIST2) $(DIST3)
 
68
        ci -u3 $(DIST4)
 
69
 
 
70
shar:
 
71
        shar $(DIST1) $(DIST2) >cproto.sh1
 
72
        shar $(DIST3) $(DIST4) >cproto.sh2
 
73
 
 
74
# DO NOT DELETE THIS LINE -- make depend depends on it.
 
75
 
 
76
cproto.obj: system.h cproto.h
 
77
lintlibs.obj: system.h cproto.h symbol.h semantic.h
 
78
popen.obj: system.h cproto.h
 
79
semantic.obj: system.h cproto.h symbol.h semantic.h
 
80
strkey.obj: cproto.h system.h
 
81
strstr.obj: system.h
 
82
symbol.obj: system.h cproto.h symbol.h