1 | # ***************************** Module Header *******************************
|
---|
2 | #
|
---|
3 | # Module Name: makefile
|
---|
4 | #
|
---|
5 | # makefile for the test utility
|
---|
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 | # - create utilitiy
|
---|
25 | # NOTE: compile with multithread support,
|
---|
26 | # because common.lib is compiled MT also
|
---|
27 | LIBS=$(BINDIR)\common.lib
|
---|
28 | MT=1
|
---|
29 |
|
---|
30 | # include main definitions
|
---|
31 | BASEDIR=..\..\..
|
---|
32 | !include $(BASEDIR)\rules.in
|
---|
33 |
|
---|
34 | # --- some file definitions for this makefile
|
---|
35 |
|
---|
36 | DEPENDFILE=$(CMPDIR)\test.dep
|
---|
37 |
|
---|
38 | FILESTOCLEAN=$(DEPENDFILE) \
|
---|
39 | $(BINDIR)\test.obj \
|
---|
40 | $(BINDIR)\test.exe \
|
---|
41 | $(BINDIR)\test.map
|
---|
42 |
|
---|
43 | INCLUDE=..\common;$(CMPDIR);$(INCLUDE)
|
---|
44 |
|
---|
45 | # --- set tesffile
|
---|
46 |
|
---|
47 | NEPMD_TMFTESTFILE=..\nepmdlib\nepmdlib.tmf
|
---|
48 |
|
---|
49 |
|
---|
50 | # --- general pseudo targets
|
---|
51 |
|
---|
52 | all: exe
|
---|
53 |
|
---|
54 | # --- pseudo targets for testcases
|
---|
55 |
|
---|
56 | run: all
|
---|
57 | $(BINDIR)\test.exe $(ARG)
|
---|
58 |
|
---|
59 | tmf:
|
---|
60 | @(SET NEPMD_TMFTESTFILE=$(NEPMD_TMFTESTFILE) & $(BINDIR)\test.exe tmf)
|
---|
61 |
|
---|
62 | instval: all
|
---|
63 | $(BINDIR)\test.exe instval
|
---|
64 |
|
---|
65 | reset:
|
---|
66 | eautil /s $(NEPMD_TMFTESTFILE) NUL
|
---|
67 |
|
---|
68 |
|
---|
69 |
|
---|
70 | clean:
|
---|
71 | @echo cleaning up files ...
|
---|
72 | -@for %%a in ($(FILESTOCLEAN)) do @del %%a /N >NUL 2>&1
|
---|
73 |
|
---|
74 | # --- special pseudo targets
|
---|
75 |
|
---|
76 | exe: $(BINDIR)\test.exe
|
---|
77 |
|
---|
78 | dep:
|
---|
79 | makedep $(BINDIR) $(DEPENDFILE)
|
---|
80 |
|
---|
81 | # --- include dependencies - create dependency file if not present
|
---|
82 |
|
---|
83 | !if [@dir $(DEPENDFILE) >NUL 2>&1 || makedep $(BINDIR) $(DEPENDFILE)]
|
---|
84 | !endif
|
---|
85 | !include $(DEPENDFILE)
|
---|
86 |
|
---|
87 | $(BINDIR)\test.exe: $(LIBS)
|
---|
88 |
|
---|