Added rules for building 'proglib' targets since nothing seemed to use this target already and it didn't work for csrss otherwise.

svn path=/trunk/; revision=3953
This commit is contained in:
Robert Dickenson 2003-01-07 17:39:58 +00:00
parent 839ce7a195
commit 5def2455d3
2 changed files with 25 additions and 1 deletions

View file

@ -1,4 +1,4 @@
# $Id: helper.mk,v 1.24 2003/01/05 19:17:16 robd Exp $ # $Id: helper.mk,v 1.25 2003/01/07 17:39:58 robd Exp $
# #
# Helper makefile for ReactOS modules # Helper makefile for ReactOS modules
# Variables this makefile accepts: # Variables this makefile accepts:
@ -300,6 +300,26 @@ ifeq ($(TARGET_TYPE),program)
endif endif
endif endif
ifeq ($(TARGET_TYPE),proglib)
ifeq ($(TARGET_APPTYPE),windows)
MK_DEFENTRY := _WinMainCRTStartup
MK_SDKLIBS := ntdll.a kernel32.a gdi32.a user32.a
TARGET_LFLAGS += -Wl,--subsystem,windows
endif
ifeq ($(TARGET_APPTYPE),native)
MK_DEFENTRY := _NtProcessStartup@4
MK_SDKLIBS := ntdll.a
TARGET_LFLAGS += -Wl,--subsystem,native -nostartfiles
endif
ifeq ($(TARGET_APPTYPE),console)
MK_DEFENTRY := _mainCRTStartup
MK_SDKLIBS :=
TARGET_LFLAGS += -Wl,--subsystem,console
endif
endif
MK_RESOURCE := $(MK_RES_BASE).coff MK_RESOURCE := $(MK_RES_BASE).coff

View file

@ -4,3 +4,7 @@ wmc
*.exe *.exe
*.o *.o
*.sym *.sym
*.dsp
*.dsw
*.ncb
*.opt