-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
75 lines (59 loc) · 2.08 KB
/
Makefile
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# IBM C/C++ (VisualAge) Makefile for UNICLOCK. Version 3.65 recommended.
# Also requires MAKEDESC.CMD in path.
#
# Uncomment (or set via command line) to enable PMPRINTF debugging
# (requires PMPRINTF, obviously).
# PMPF = 1
!ifndef NLV
NLV = 001
!endif
BL_NAME = "Universal Clock for OS/2 (country $(NLV))"
BL_VEND = "Alex Taylor"
CC = icc.exe
RC = rc.exe
LINK = ilink.exe
IPFC = ipfc.exe
CFLAGS = /Gm /Ss /Q+ /Wuse # /Wrea /Wuni
RFLAGS = -n -cc $(NLV)
LFLAGS = /NOE /PMTYPE:PM /NOLOGO
NAME = uclock
OBJS = $(NAME).obj cfg_prog.obj cfg_clk.obj wtdpanel.obj sunriset.obj
LIBS = libconv.lib libuls.lib
ICONS = program.ico up.ico down.ico
!ifdef PMPF
LIBS = $(LIBS) pmprintf.lib
CFLAGS = $(CFLAGS) /D_PMPRINTF_
!endif
!ifdef DEBUG
CFLAGS = $(CFLAGS) /Ti /Tm
LFLAGS = $(LFLAGS) /DEBUG
!endif
!if "$(NLV)" == "081"
RFLAGS = $(RFLAGS) -cp 932
!elif "$(NLV)" == "082"
RFLAGS = $(RFLAGS) -cp 949
!elif "$(NLV)" == "086"
RFLAGS = $(RFLAGS) -cp 1386
!elif "$(NLV)" == "088"
RFLAGS = $(RFLAGS) -cp 950
!endif
all : $(NAME).exe $(NAME).hlp
wtdpanel.obj: wtdpanel.c wtdpanel.h Makefile
uclock.obj : uclock.c $(NAME).h wtdpanel.h ids.h Makefile
cfg_prog.obj: cfg_prog.c $(NAME).h wtdpanel.h ids.h Makefile
cfg_clk.obj : cfg_clk.c $(NAME).h wtdpanel.h ids.h Makefile
$(NAME).exe : $(OBJS) $(NAME).h ids.h wtdpanel.h $(NAME).res Makefile
-touch $(NAME).def
-makedesc -D$(BL_NAME) -N$(BL_VEND) -V"^#define=SZ_VERSION,uclock.h" $(NAME).def
$(LINK) $(LFLAGS) $(OBJS) $(LIBS) $(NAME).def
$(RC) -x -n $(NAME).res $@
$(NAME).res : {$(NLV)}$(NAME).rc {$(NLV)}$(NAME).dlg ids.h $(ICONS)
%cd $(NLV)
$(RC) -i .. -r -n $(RFLAGS) $(NAME).rc ..\$@
%cd ..
$(NAME).hlp : {$(NLV)}$(NAME).ipf
%cd $(NLV)
$(IPFC) -d:$(NLV) $(NAME).ipf ..\$@
%cd ..
clean :
-del $(OBJS) $(NAME).res $(NAME).exe $(NAME).hlp 2>NUL