2 # Makefile for LCC-WIN32
4 # Copyright 1999 Marcel Baur (mbaur@g26.ethz.ch)
5 # To be distributed under the Wine License
7 # Use lccmake -f lccmake to use this makefile
9 # See http://www.cs.virgina.edu/~lcc-win32 for
10 # information about LCC-WIN32
19 # individual flags for LCC, LCCLNK, LRC
22 LNKFLAGS=-O winepad.exe -subsystem windows
28 LANGUAGES=Da De En Es Fi Fr Sw
36 # required include libraries
43 OBJS=main.obj dialog.obj license.obj license_En.obj language.obj
46 # ---[ it is save not to change anything behind this line ]--- #
49 winepad.exe: $(OBJS) resources
50 $(LCCHOME)\bin\lcclnk $(LNKFLAGS) $(OBJS) notepad.res $(LIBS)
51 @echo *** "winepad.exe" successfully created
53 resources: $(RESOURCES)
54 FOR %%i IN ($(LANGUAGES)) DO $(LCCHOME)\bin\lrc $(LRCFLAGS) %%i.rc
55 copy /b $(LANGUAGE).res notepad.res
58 if exist winepad.exe erase winepad.exe
59 if exist main.obj erase main.obj
60 if exist dialog.obj erase dialog.obj
61 if exist license.obj erase license.obj
62 if exist license_En.obj erase license_En.obj
63 if exist language.obj erase language.obj
64 if exist notepad.res erase notepad.res
65 FOR %%i IN ($(LANGUAGES)) DO IF EXIST %%i.res erase %%i.res
66 FOR %%i IN ($(LANGUAGES)) DO IF EXIST %%i.map erase %%i.map
69 @echo lccmake help - display this help
70 @echo lccmake - to compile winepad.exe
71 @echo lccmake resources - to compile .res files
72 @echo lccmake clean - to clean up
76 # some more targets (for novice users and compatibility reasons only)
80 @echo *** next time please use "lccmake clean"
83 @echo *** next time please use "lccmake" (without parameters)
87 # please make sure that at least one empty line follows this statement