#******************************************************************************* #****************************************************************************** # Copyright (c) 2000, 2005 IBM Corporation and others. # 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: # IBM Corporation - initial API and implementation # Kevin Cornell (Rational Software Corporation) #******************************************************************************* # Makefile for creating the eclipse launcher program. # This makefile expects the following environment variables set: # # PROGRAM_OUTPUT - the filename of the output executable # DEFAULT_OS - the default value of the "-os" switch # DEFAULT_OS_ARCH - the default value of the "-arch" switch # DEFAULT_WS - the default value of the "-ws" switch !include # Define the object modules to be compiled and flags. OBJS = eclipse.obj eclipseWin.obj eclipseShm.obj eclipseConfig.obj eclipseUtil.obj aeclipse.obj aeclipseWin.obj aeclipseShm.obj aeclipseConfig.obj aeclipseUtil.obj LIBS = kernel32.lib user32.lib gdi32.lib comctl32.lib LFLAGS = /INCREMENTAL:NO /NOLOGO -subsystem:windows,4.0 -entry:wmainCRTStartup RES = eclipse.res EXEC = eclipse.exe DEBUG = #$(cdebug) acflags = -I.. -DDEFAULT_OS="\"$(DEFAULT_OS)\"" \ -DDEFAULT_OS_ARCH="\"$(DEFAULT_OS_ARCH)\"" \ -DDEFAULT_WS="\"$(DEFAULT_WS)\"" \ $(cflags) wcflags = -DUNICODE $(acflags) all: $(EXEC) eclipse.obj: ../eclipseOS.h ../eclipseUnicode.h ../eclipse.c ../eclipseShm.h $(cc) $(DEBUG) $(wcflags) $(cvars) /Fo$*.obj ../eclipse.c eclipseUtil.obj: ../eclipseUtil.h ../eclipseUnicode.h ../eclipseUtil.c $(cc) $(DEBUG) $(wcflags) $(cvars) /Fo$*.obj ../eclipseUtil.c eclipseShm.obj: ../eclipseShm.h ../eclipseUnicode.h ../eclipseShm.c $(cc) $(DEBUG) $(wcflags) $(cvars) /Fo$*.obj ../eclipseShm.c eclipseConfig.obj: ../eclipseConfig.h ../eclipseUnicode.h ../eclipseConfig.c $(cc) $(DEBUG) $(wcflags) $(cvars) /Fo$*.obj ../eclipseConfig.c eclipseWin.obj: ../eclipseOS.h ../eclipseUnicode.h eclipseWin.c $(cc) $(DEBUG) $(wcflags) $(cvars) /Fo$*.obj eclipseWin.c aeclipse.obj: ../eclipseOS.h ../eclipseUnicode.h ../eclipse.c ../eclipseShm.h $(cc) $(DEBUG) $(acflags) $(cvars) /Foaeclipse.obj ../eclipse.c aeclipseUtil.obj: ../eclipseUtil.h ../eclipseUnicode.h ../eclipseUtil.c $(cc) $(DEBUG) $(acflags) $(cvars) /FoaeclipseUtil.obj ../eclipseUtil.c aeclipseShm.obj: ../eclipseShm.h ../eclipseUnicode.h ../eclipseShm.c $(cc) $(DEBUG) $(acflags) $(cvars) /FoaeclipseShm.obj ../eclipseShm.c aeclipseConfig.obj: ../eclipseConfig.h ../eclipseConfig.h ../eclipseConfig.c $(cc) $(DEBUG) $(acflags) $(cvars) /FoaeclipseConfig.obj ../eclipseConfig.c aeclipseWin.obj: ../eclipseOS.h ../eclipseUnicode.h eclipseWin.c $(cc) $(DEBUG) $(acflags) $(cvars) /FoaeclipseWin.obj eclipseWin.c $(EXEC): $(OBJS) $(RES) $(link) $(LFLAGS) -out:$(PROGRAM_OUTPUT) $(OBJS) $(RES) $(LIBS) $(RES): eclipse.rc $(rc) -r -fo $(RES) eclipse.rc install: all copy $(EXEC) $(OUTPUT_DIR) del -f $(EXEC) $(OBJS) $(RES) clean: del $(EXEC) $(OBJS) $(RES)