Integrated winhello into new build system

svn path=/trunk/; revision=2192
This commit is contained in:
Casper Hornstrup 2001-08-23 16:14:57 +00:00
parent b36ed4b1fc
commit aa20d5b1d5
3 changed files with 14 additions and 28 deletions

View file

@ -59,7 +59,7 @@ SYS_APPS = services shell winlogon
APPS = args hello test cat bench apc shm lpc thread event file gditest \
pteb consume dump_shared_data vmtest regtest alive mstest nptest \
objdir atomtest
objdir atomtest winhello
#NET_APPS = ping roshttpd telnet
NET_APPS = ping roshttpd

View file

@ -1,35 +1,21 @@
#
#
#
# $Id: makefile,v 1.2 2001/08/23 16:13:40 chorns Exp $
PATH_TO_TOP = ../..
PROGS = winhello
TARGET_NORC = yes
OBJECTS =
LIBS= ../../lib/kernel32/kernel32.a ../../lib/gdi32/gdi32.a
CFLAGS = -I../../include
TARGET_TYPE = program
all: $(PROGS:%=%.exe)
TARGET_APPTYPE = windows
.phony: all
TARGET_NAME = winhello
clean:
- $(RM) *.o *.exe *.sym
TARGET_SDKLIBS = kernel32.a gdi32.a
.phony: clean
TARGET_OBJECTS = $(TARGET_NAME).o
install: $(PROGS:%=$(FLOPPY_DIR)/apps/%.exe)
include $(PATH_TO_TOP)/rules.mak
$(PROGS:%=$(FLOPPY_DIR)/apps/%.exe): $(FLOPPY_DIR)/apps/%.exe: %.exe
$(CP) $*.exe $(FLOPPY_DIR)/apps/$*.exe
include $(TOOLS_PATH)/helper.mk
dist: $(PROGS:%=../../$(DIST_DIR)/apps/%.exe)
$(PROGS:%=../../$(DIST_DIR)/apps/%.exe): ../../$(DIST_DIR)/apps/%.exe: %.exe
$(CP) $*.exe ../../$(DIST_DIR)/apps/$*.exe
winhello.exe: winhello.c
$(CC) $(CFLAGS) winhello.c $(LIBS) -o winhello.exe
$(NM) --numeric-sort winhello.exe > winhello.sym
include ../../rules.mak
# EOF

View file

@ -1,4 +1,4 @@
# $Id: helper.mk,v 1.3 2001/08/23 15:34:00 ekohl Exp $
# $Id: helper.mk,v 1.4 2001/08/23 16:14:47 chorns Exp $
#
# Helper makefile for ReactOS modules
# Variables this makefile accepts:
@ -236,7 +236,7 @@ endif
ifeq ($(TARGET_TYPE),program)
ifeq ($(TARGET_APPTYPE),windows)
MK_DEFENTRY := _WinMainCRTStartup@16
MK_DEFENTRY := _WinMainCRTStartup
MK_SDKLIBS :=
TARGET_LFLAGS += -Wl,--subsystem,windows
endif