summaryrefslogtreecommitdiffstats
path: root/private/mvdm/vdd/samples/hpscan/makefile
blob: a8860fb1fc7aba5750e9b214004a95a4d0470003 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Makefile for hpscan16 stub device driver

!IFNDEF BUILDMSG
BUILDMSG=
!ENDIF

########## Path definition so we find 16 bit tools ##########
# Also works around stupid bug in RC 3.1 that doesn't allow rcpp.err to be
# in a directory that is greater than 128 chars down the path, even if
# rc 3.1 is running as an OS/2 app.

PATH    = $(_NTBINDIR)\private\mvdm\tools16;$(PATH)

.SUFFIXES:
.SUFFIXES: .c .obj .lst .exe .exc .exs .com .sal .cod .sil .inc .skl .cla .cl1 .ctl .asm .idx .msg

MAKE    =nmake
asm     =masm
awarn   =-W1
aflags  =-Mx -t $(awarn) $(extasw)
ainc    =-I. -I$(_NTBINDIR)\public\sdk\inc


.asm.obj:
        $(asm) $(ainc) $(aflags) $*.asm;

.asm.lst:
        $(asm) -l $(ainc) $(aflags) $*.asm;

all: hpscan16.sys
        -binplace hpscan16.sys

clean: cleanup all

cleanup:
        if exist *.obj      del *.obj
        if exist *.exe      del *.exe
        if exist *.map      del *.map
        if exist *.sym      del *.sym
        if exist *.sys      del *.sys

hpscan16.sys: hpscan16.obj
        link16 hpscan16;
        exe2bin hpscan16.exe hpscan16.sys