1 | # ***************************** Module Header *******************************
|
---|
2 | #
|
---|
3 | # Module Name: makefile
|
---|
4 | #
|
---|
5 | # makefile for the library for generic routines
|
---|
6 | #
|
---|
7 | # Copyright (c) Netlabs EPM Distibution Project 2002
|
---|
8 | #
|
---|
9 | # $Id: makefile 2417 2011-05-15 23:32:51Z aschn $
|
---|
10 | #
|
---|
11 | # ===========================================================================
|
---|
12 | #
|
---|
13 | # This file is part of the Netlabs EPM Distribution package and is free
|
---|
14 | # software. You can redistribute it and/or modify it under the terms of the
|
---|
15 | # GNU General Public License as published by the Free Software
|
---|
16 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
17 | # Netlabs EPM Distribution. This library is distributed in the hope that it
|
---|
18 | # will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
|
---|
19 | # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
20 | # General Public License for more details.
|
---|
21 | #
|
---|
22 | # ***************************************************************************
|
---|
23 |
|
---|
24 | OBJS= \
|
---|
25 | $(BINDIR)\common.obj\
|
---|
26 | $(BINDIR)\ddeutil.obj\
|
---|
27 | $(BINDIR)\eas.obj\
|
---|
28 | $(BINDIR)\file.obj\
|
---|
29 | $(BINDIR)\pmres.obj\
|
---|
30 | $(BINDIR)\process.obj\
|
---|
31 | $(BINDIR)\epmenv.obj\
|
---|
32 | $(BINDIR)\tmf.obj\
|
---|
33 | $(BINDIR)\instval.obj\
|
---|
34 | $(BINDIR)\module.obj\
|
---|
35 | $(BINDIR)\libreg.obj\
|
---|
36 | $(BINDIR)\init.obj\
|
---|
37 | $(BINDIR)\mmf.obj\
|
---|
38 | $(BINDIR)\hilite.obj\
|
---|
39 | $(BINDIR)\mode.obj
|
---|
40 |
|
---|
41 | MT=1
|
---|
42 |
|
---|
43 | # include main definitions
|
---|
44 | BASEDIR=..\..\..
|
---|
45 | !include $(BASEDIR)\rules.in
|
---|
46 |
|
---|
47 | # --- some file definitions for this makefile
|
---|
48 |
|
---|
49 | DEPENDFILE=$(CMPDIR)\common.dep
|
---|
50 |
|
---|
51 | FILESTOCLEAN=$(DEPENDFILE) \
|
---|
52 | $(OBJS)\
|
---|
53 | $(BINDIR)\common.lib \
|
---|
54 | $(BINDIR)\common.lst
|
---|
55 |
|
---|
56 |
|
---|
57 | # --- general pseudo targets
|
---|
58 |
|
---|
59 | all: lib pmprintf
|
---|
60 |
|
---|
61 | clean:
|
---|
62 | @echo cleaning up files ...
|
---|
63 | -@for %%a in ($(FILESTOCLEAN)) do @del %%a /N >NUL 2>&1
|
---|
64 |
|
---|
65 | # --- special pseudo targets
|
---|
66 |
|
---|
67 | lib: $(BINDIR)\common.lst
|
---|
68 |
|
---|
69 | pmprintf: $(BINDIR)\printf.obj
|
---|
70 |
|
---|
71 | dep:
|
---|
72 | makedep $(BINDIR) $(DEPENDFILE)
|
---|
73 |
|
---|
74 | # --- include dependencies - create dependency file if not present
|
---|
75 |
|
---|
76 | !if [@dir $(DEPENDFILE) >NUL 2>&1 || makedep $(BINDIR) $(DEPENDFILE)]
|
---|
77 | !endif
|
---|
78 | !include $(DEPENDFILE)
|
---|
79 |
|
---|
80 | # --- extend suffix list
|
---|
81 |
|
---|
82 | .SUFFIXES: .ex
|
---|
83 |
|
---|
84 | # --- copy executable to netlabs directory below binary directory
|
---|
85 |
|
---|
86 | $(BINDIR)\common.lib: $(OBJS)
|
---|
87 |
|
---|
88 | $(BINDIR)\common.lst: $(BINDIR)\common.lib
|
---|
89 |
|
---|
90 |
|
---|