Added gdi test program gditest.exe

svn path=/trunk/; revision=1001
This commit is contained in:
Eric Kohl 2000-02-22 20:58:26 +00:00
parent 7b02da36f7
commit 6165746875
3 changed files with 63 additions and 3 deletions

View file

@ -15,8 +15,8 @@ include rules.mak
# Required to run the system
#
COMPONENTS = iface_native iface_additional ntoskrnl
DLLS = ntdll kernel32 crtdll advapi32 fmifs gdi32
#DLLS = mingw32 user32
DLLS = ntdll kernel32 crtdll advapi32 fmifs gdi32
#DLLS = mingw32
SUBSYS = smss win32k
#SUBSYS = csrss
@ -41,7 +41,7 @@ FS_DRIVERS = vfat
# FS_DRIVERS = minix ext2 template
KERNEL_SERVICES = $(DEVICE_DRIVERS) $(FS_DRIVERS)
APPS = args hello shell test cat bench apc shm lpc thread event file
APPS = args hello shell test cat bench apc shm lpc thread event file gditest
all: buildno $(COMPONENTS) $(DLLS) $(SUBSYS) $(LOADERS) $(KERNEL_SERVICES) $(APPS)

View file

@ -0,0 +1,14 @@
/*
* gditest
*/
#include <windows.h>
int main (void)
{
GdiDllInitialize (NULL, DLL_PROCESS_ATTACH, NULL);
return 0;
}

View file

@ -0,0 +1,46 @@
#
#
#
PROGS = gditest
OBJECTS= ../common/crt0.o
LIBS= ../../lib/kernel32/kernel32.a ../../lib/gdi32/gdi32.a
#LIBS= ../../lib/kernel32/kernel32.a ../../lib/crtdll/crtdll.a
BASE_CFLAGS = -I../../include
all: $(PROGS:%=%.exe)
.phony: all
$(PROGS:%=%_clean): %_clean:
- $(RM) $*.o
- $(RM) $*.exe
- $(RM) $*.sym
clean: $(PROGS:%=%_clean)
.phony: clean
floppy: $(PROGS:%=$(FLOPPY_DIR)/apps/%.exe)
$(PROGS:%=$(FLOPPY_DIR)/apps/%.exe): $(FLOPPY_DIR)/apps/%.exe: %.exe
ifeq ($(DOSCLI),yes)
$(CP) $*.exe $(FLOPPY_DIR)\apps\$*.exe
else
$(CP) $*.exe $(FLOPPY_DIR)/apps/$*.exe
endif
dist: $(PROGS:%=../../$(DIST_DIR)/apps/%.exe)
$(PROGS:%=../../$(DIST_DIR)/apps/%.exe): ../../$(DIST_DIR)/apps/%.exe: %.exe
ifeq ($(DOSCLI),yes)
$(CP) $*.exe ..\..\$(DIST_DIR)\apps\$*.exe
else
$(CP) $*.exe ../../$(DIST_DIR)/apps/$*.exe
endif
gditest.exe: gditest.c
$(CC) -specs=../../specs gditest.c $(BASE_CFLAGS) $(OBJECTS) $(LIBS) -lgcc -o gditest.exe
$(NM) --numeric-sort gditest.exe > gditest.sym
include ../../rules.mak