Skip to main content
summaryrefslogtreecommitdiffstats
blob: 8335a7dc55dc5291d5baede651970546de88d007 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
ifeq ($(JAVA_HOME),)
$(error JAVA_HOME not set in environment)
endif

TARGET = $(INSTALL_DIR)/winreg.dll

OBJS = winreg.o

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 = ../../../org.eclipse.cdt.core.$(OS).$(ARCH)/os/$(OS)/$(ARCH)

all: $(TARGET)

rebuild: clean all

clean :
	$(RM) $(OBJS)

$(TARGET) : $(OBJS)
	$(CXX) -Wl,--kill-at -shared -o $(TARGET) $(OBJS)

Back to the top