Added gdi test program gditest.exe
authorEric Kohl <eric.kohl@reactos.org>
Tue, 22 Feb 2000 20:58:26 +0000 (20:58 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Tue, 22 Feb 2000 20:58:26 +0000 (20:58 +0000)
svn path=/trunk/; revision=1001

reactos/Makefile
reactos/apps/tests/gditest/gditest.c [new file with mode: 0644]
reactos/apps/tests/gditest/makefile [new file with mode: 0644]

index 430d15a..b9d84f9 100644 (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)
 
diff --git a/reactos/apps/tests/gditest/gditest.c b/reactos/apps/tests/gditest/gditest.c
new file mode 100644 (file)
index 0000000..d080881
--- /dev/null
@@ -0,0 +1,14 @@
+/*
+ * gditest
+ */
+
+#include <windows.h>
+
+
+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 (file)
index 0000000..33519ab
--- /dev/null
@@ -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