From 616574687560291376edc055b65a206080ac6455 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Tue, 22 Feb 2000 20:58:26 +0000 Subject: [PATCH] Added gdi test program gditest.exe svn path=/trunk/; revision=1001 --- reactos/Makefile | 6 ++-- reactos/apps/tests/gditest/gditest.c | 14 +++++++++ reactos/apps/tests/gditest/makefile | 46 ++++++++++++++++++++++++++++ 3 files changed, 63 insertions(+), 3 deletions(-) create mode 100644 reactos/apps/tests/gditest/gditest.c create mode 100644 reactos/apps/tests/gditest/makefile diff --git a/reactos/Makefile b/reactos/Makefile index 430d15a5deb..b9d84f9642f 100644 --- a/reactos/Makefile +++ b/reactos/Makefile @@ -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) diff --git a/reactos/apps/tests/gditest/gditest.c b/reactos/apps/tests/gditest/gditest.c new file mode 100644 index 00000000000..d080881cffe --- /dev/null +++ b/reactos/apps/tests/gditest/gditest.c @@ -0,0 +1,14 @@ +/* + * gditest + */ + +#include + + +int main (void) +{ + GdiDllInitialize (NULL, DLL_PROCESS_ATTACH, NULL); + + + return 0; +} diff --git a/reactos/apps/tests/gditest/makefile b/reactos/apps/tests/gditest/makefile new file mode 100644 index 00000000000..33519ab1c87 --- /dev/null +++ b/reactos/apps/tests/gditest/makefile @@ -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