S
S
Sergey Karbivnichy2021-01-09 16:00:46
Building projects
Sergey Karbivnichy, 2021-01-09 16:00:46

What are the sources files in the source folders?

Now I'm looking through the code windows xp, 2003, nt. There, in each folder, there is a sources file (something similar to a makefile), with the following content:

!IF 0
**************************************************************
Sources file for building an Win32 dll.

Module Name :   Sources for timerw32.dll

Author:  vaidy

Revision:    10/23/90

Comments:

    o  Use C_DEFINES "-DWIN32" to build for Windows NT
    o  Use C_DEFINES "-DWIN32" & "-DW32S" to build for WIN32s

**************************************************************
!ENDIF

DLLBASE=0x75000000

MAJORCOMP = windows
TARGETNAME=timerw32
TARGETPATH=$(BASEDIR)\public\sdk\lib
TARGETTYPE=DYNLINK
TARGETLIBS=
DLLENTRY=TimerDllInitialize

INCLUDES=..\inc

SOURCES=  timer.c

UMTYPE=windows
UMLIBS= 

C_DEFINES= -DWIN32
386_WARNING_LEVEL=-W3

Theoretically, you can understand the structure of this file. But I would like to know what these files are, and where to read the syntax (most likely on MSDN).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Karbivnichy, 2021-01-09
@hottabxp

The sources file contains build rules and path variables for libraries and other files. You can also use macros in this file. Under Windows Vista and above, this file is optional (if I understand correctly). More details can be found in the DDK documentation for Windows 2000 and XP under: Windows DDK -> Driver Development Tools -> The Build Utility -> Build Utility Reference
5ff9c83054c76370448454.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question