mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
Added gdi test program gditest.exe
svn path=/trunk/; revision=1001
This commit is contained in:
parent
7b02da36f7
commit
6165746875
3 changed files with 63 additions and 3 deletions
|
@ -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)
|
||||
|
||||
|
|
14
reactos/apps/tests/gditest/gditest.c
Normal file
14
reactos/apps/tests/gditest/gditest.c
Normal file
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* gditest
|
||||
*/
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
|
||||
int main (void)
|
||||
{
|
||||
GdiDllInitialize (NULL, DLL_PROCESS_ATTACH, NULL);
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
46
reactos/apps/tests/gditest/makefile
Normal file
46
reactos/apps/tests/gditest/makefile
Normal 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
|
Loading…
Reference in a new issue