From 69ee033a1a50e4ff7479103059514389b69f828f Mon Sep 17 00:00:00 2001 From: Doug Schaefer Date: Fri, 4 May 2007 14:57:10 +0000 Subject: [PATCH] Move winreg into a sub directory. I'll eventually do this with all of our components and move them all to MinGW. --- .../library/winreg/Makefile | 28 +++++++++++++++++++ .../library/{ => winreg}/winreg.cpp | 0 2 files changed, 28 insertions(+) create mode 100644 core/org.eclipse.cdt.core.win32/library/winreg/Makefile rename core/org.eclipse.cdt.core.win32/library/{ => winreg}/winreg.cpp (100%) diff --git a/core/org.eclipse.cdt.core.win32/library/winreg/Makefile b/core/org.eclipse.cdt.core.win32/library/winreg/Makefile new file mode 100644 index 00000000000..be8a06fa3e9 --- /dev/null +++ b/core/org.eclipse.cdt.core.win32/library/winreg/Makefile @@ -0,0 +1,28 @@ +ifeq ($(JAVA_HOME),) +$(warning JAVA_HOME not set in environment) +endif + +# Defaults which can be overridden. +OS = win32 +ARCH = x86 + +JDK_INCLUDES = "$(JAVA_HOME)/include" +JDK_OS_INCLUDES = "$(JAVA_HOME)/include/$(OS)" + +CXX = g++ +CXXFLAGS = -DUNICODE -I$(JDK_INCLUDES) -I$(JDK_OS_INCLUDES) + +INSTALL_DIR = ../../os/$(OS)/$(ARCH) + +TARGET = $(INSTALL_DIR)/winreg.dll +OBJS = winreg.o + +all: $(TARGET) + +rebuild: clean all + +clean : + $(RM) $(OBJS) + +$(TARGET) : $(OBJS) + $(CXX) -Wl,--kill-at -shared -o $(TARGET) $(OBJS) diff --git a/core/org.eclipse.cdt.core.win32/library/winreg.cpp b/core/org.eclipse.cdt.core.win32/library/winreg/winreg.cpp similarity index 100% rename from core/org.eclipse.cdt.core.win32/library/winreg.cpp rename to core/org.eclipse.cdt.core.win32/library/winreg/winreg.cpp