blob: 65617645e2cf21c838cf0514eacba7740ce948dd [file] [log] [blame]
#*******************************************************************************
# Copyright (c) 2000, 2003 IBM Corporation and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Common Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/cpl-v10.html
#
# Contributors:
# IBM Corporation - initial API and implementation
#*******************************************************************************
# Makefile for SWT libraries on Carbon/Mac
include make_common.mak
SWT_PREFIX=swt
WS_PREFIX=carbon
SWT_VERSION=$(maj_ver)$(min_ver)
SWT_LIB=lib$(SWT_PREFIX)-$(WS_PREFIX)-$(SWT_VERSION).jnilib
DEBUG =
CFLAGS = -c -DSWT_VERSION=$(SWT_VERSION) $(DEBUG) -DCARBON -I /System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Headers
LFLAGS = -bundle -framework JavaVM -framework Carbon
SWT_OBJS = os.o os_custom.o os_structs.o callback.o
all: $(SWT_LIB)
.c.o:
cc $(CFLAGS) $*.c
$(SWT_LIB): $(SWT_OBJS)
cc -o $(SWT_LIB) $(LFLAGS) $(SWT_OBJS)
clean:
rm -f *.jnilib *.o