Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 5fe1804cc99f6a5087d7f98b0d33e0f9d070672b (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#*******************************************************************************
# Copyright (c) 2011 Marc-Andre Laperle
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
#     Marc-Andre Laperle - initial API and implementation
#*******************************************************************************

# Makefile (nmake) for Core fragment on Windows x86_64

OS = win32
ARCH = x86_64

JDK_INCLUDES= "$(JAVA_HOME)\include"
JDK_OS_INCLUDES= "$(JAVA_HOME)\include/$(OS)"

CC=cl
DEBUG_FLAGS =  -DDEBUG_MONITOR -DREAD_REPORT
CFLAGS = /TP /I$(JDK_INCLUDES) /I$(JDK_OS_INCLUDES) /EHs /nologo
CFLAGS_UNICODE = /D "_UNICODE" /D "UNICODE" $(CFLAGS)

INSTALL_DIR = ..\..\org.eclipse.cdt.core.$(OS).$(ARCH)\os\$(OS)\$(ARCH)

DLL_SPAWNER = spawner.dll
OBJS_SPAWNER=StdAfx.obj Win32ProcessEx.obj iostream.obj raise.obj spawner.obj

DLL_WINREG = winreg.dll
OBJS_WINREG=winreg/winreg.obj

EXE_STARTER = starter.exe
OBJS_STARTER=starter/starter.obj

EXE_LISTTASKS = listtasks.exe
OBJS_LISTTASKS=listtasks/listtasks.obj listtasks/StdAfx.obj

.c.obj:
	cl /c $(CFLAGS_UNICODE) $*.c /Fo$@

.cpp.obj:
	cl /c $(CFLAGS_UNICODE) $*.cpp /Fo$@

#TODO: Use unicode for listtasks, see bug 353460
listtasks/listtasks.obj:
	cl /c $(CFLAGS) $*.cpp /Fo$@

spawner: $(OBJS_SPAWNER)
	link /dll /nologo /out:$(DLL_SPAWNER) $(OBJS_SPAWNER) User32.lib

winreg: $(OBJS_WINREG)
	link /dll /nologo /out:$(DLL_WINREG) $(OBJS_WINREG) Advapi32.lib
	
starter: $(OBJS_STARTER)
	link /nologo /out:$(EXE_STARTER) $(OBJS_STARTER) Psapi.Lib Shell32.lib
	
listtasks: $(OBJS_LISTTASKS)
	link /nologo /out:$(EXE_LISTTASKS) $(OBJS_LISTTASKS) Psapi.Lib

all: spawner winreg starter listtasks

clean:
	del *.obj *.lib *.exp *.exe *.dll winreg\*.obj starter\*.obj listtasks\*.obj

rebuild: clean all

install: all
	copy *.dll $(INSTALL_DIR)
	copy *.exe $(INSTALL_DIR)
	
uninstall:
	del $(INSTALL_DIR)\*.dll $(INSTALL_DIR)\*.exe

Back to the top