Skip to content

Commit

Permalink
Prepare for version 1.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinPayne committed Aug 26, 2013
1 parent 010c15f commit e27e5c3
Show file tree
Hide file tree
Showing 8 changed files with 185 additions and 124 deletions.
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# This Makefile will build the Win16 test application.

HEADERS = resource.h callbacks.h
OBJS = winmain.obj callbacks.obj
RES = resource.res
HEADERS = Resource.h Callback.h
OBJS = WinMain.obj Callback.obj
RES = Resource.res

CC = cl16.exe
CFLAGS = /nologo /c /D WINVER=0x0300 /Gsw /Gf /G2 /Os /W2 /Zp
CFLAGS = /nologo /c /D NDEBUG /D WINVER=0x0300 /G3swf /Os /W3 /Zp /FPi87
LINK = link16.exe
RC = rc16.exe
EXE = Win16App.exe
Expand All @@ -15,13 +15,13 @@ all: Win16App.exe

Win16App.exe: $(OBJS) $(RES) $(DEF)
$(LINK) /nologo /align:16 $(OBJS),$(EXE),,libw.lib slibcew.lib,$(DEF)
$(RC) /nologo -30 $(RES) $(EXE)
$(RC) /nologo /30 $(RES) $(EXE)

clean:
del $(OBJS) $(RES) $(EXE)
del $(OBJS) $(RES) $(EXE) Win16App.map

%.obj: %.c $(HEADERS)
$(CC) $(CFLAGS) $<

resource.res: resource.rc App.ico resource.h
Resource.res: Resource.rc App.ico Resource.h
$(RC) /nologo /r resource.rc
21 changes: 19 additions & 2 deletions Readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This application is an example 16
accompanies an article from my web site, located at
http://www.transmissionzero.co.uk/computing/win16-apps-in-c/.

To build the application with Microsoft�s Visual C compilers, simply open a
To build the application with Microsoft�s Visual C++ compilers, simply open a
command prompt, change to the directory containing the Makefile, and run
�nmake�. Note that you will need the 16�bit C compiler, linker, and resource
compiler�it won�t work with 32�bit compilers! Also note that the Makefile may
Expand All @@ -13,12 +13,14 @@ require some small modifications if you use a make utility other than
To build the application in Open Watcom, simply open the project up in the IDE,
and choose the �Make� option from the �Targets� menu.


Disclaimer

This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.


Terms of Use

There is no specific license attached to the use this application. You are free
Expand All @@ -30,12 +32,27 @@ application template, and how you license any applications built with it is
entirely up to you. Of course, you must still comply with the licensing
conditions of the tools you are using to build the application.


Problems?

If you have any problems or questions, please get in contact via
http://www.transmissionzero.co.uk/contact/. Please ensure that you read the
article at http://www.transmissionzero.co.uk/computing/win16-apps-in-c/ before
sending any questions.


Changelog

2013�08�26: Version 1.1

� Added a VERSIONINFO resource to the executable, so that version information
can be viewed in File Manager or Windows Explorer.
� Open Watcom build now runs in Windows 3.0 (but not in real mode).
� Ensured all source files are 8.3 characters long.

2011�07�06: Version 1.0

� First release.

Martin Payne
2011�07�06
2013�08�26
Loading

0 comments on commit e27e5c3

Please sign in to comment.