From 6f6219e90368ca5f9e8f015c28bad91fadc19e9c Mon Sep 17 00:00:00 2001 From: David Welch Date: Sat, 12 Aug 2000 19:37:03 +0000 Subject: [PATCH] Added shared data test application svn path=/trunk/; revision=1298 --- .../tests/dump_shared_data/dump_shared_data.c | 9 +++++ reactos/apps/tests/dump_shared_data/makefile | 40 +++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 reactos/apps/tests/dump_shared_data/dump_shared_data.c create mode 100644 reactos/apps/tests/dump_shared_data/makefile diff --git a/reactos/apps/tests/dump_shared_data/dump_shared_data.c b/reactos/apps/tests/dump_shared_data/dump_shared_data.c new file mode 100644 index 00000000000..189b53bc74b --- /dev/null +++ b/reactos/apps/tests/dump_shared_data/dump_shared_data.c @@ -0,0 +1,9 @@ +#include +#include +#include + +int main() +{ + printf("TickCountLow: %x\n", + ((PKUSER_SHARED_DATA)USER_SHARED_DATA_BASE)->TickCountLow); +} diff --git a/reactos/apps/tests/dump_shared_data/makefile b/reactos/apps/tests/dump_shared_data/makefile new file mode 100644 index 00000000000..647168f52fe --- /dev/null +++ b/reactos/apps/tests/dump_shared_data/makefile @@ -0,0 +1,40 @@ +# +# +# +OBJECTS = dump_shared_data.o +PROGS = dump_shared_data.exe +LIBS = +CLEAN_FILES = dump_shared_data.o dump_shared_data.exe + +all: dump_shared_data.exe + +clean: $(CLEAN_FILES:%=%_clean) + +$(CLEAN_FILES:%=%_clean): %_clean: + - $(RM) $* + +.phony: clean $(CLEAN_FILES:%=%_clean) + +floppy: $(PROGS:%=$(FLOPPY_DIR)/apps/%) + +$(PROGS:%=$(FLOPPY_DIR)/apps/%): $(FLOPPY_DIR)/apps/%: % +ifeq ($(DOSCLI),yes) + $(CP) $* $(FLOPPY_DIR)\apps\$* +else + $(CP) $* $(FLOPPY_DIR)/apps/$* +endif + +dist: $(PROGS:%=../../$(DIST_DIR)/apps/%) + +$(PROGS:%=../../$(DIST_DIR)/apps/%): ../../$(DIST_DIR)/apps/%: % +ifeq ($(DOSCLI),yes) + $(CP) $* ..\..\$(DIST_DIR)\apps\$* +else + $(CP) $* ../../$(DIST_DIR)/apps/$* +endif + +dump_shared_data.exe: $(OBJECTS) + $(CC) $(OBJECTS) -o dump_shared_data.exe + +BASE_CFLAGS = -I../../include +include ../../rules.mak