blob: c8f0b84d1c698c58ee2a96e40548f2b75e81201e [file] [log] [blame]
#*******************************************************************************
# 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
#*******************************************************************************
# Makefile for SWT libraries on Photon
include make_common.mak
# This makefile assumes IVE_HOME is set in the environment
SWT_PREFIX=swt
WS_PREFIX=photon
SWT_VERSION=$(maj_ver)$(min_ver)
SWT_LIB=lib$(SWT_PREFIX)-$(WS_PREFIX)-$(SWT_VERSION).so
# Uncomment for Native Stats tool
#NATIVE_STATS = -DNATIVE_STATS
#SWT_DEBUG = -g
CFLAGS = -c -shared -O2 -DSWT_VERSION=$(SWT_VERSION) $(NATIVE_STATS) -w8 $(SWT_DEBUG) -DPHOTON -I$(IVE_HOME)/include
LFLAGS = -shared -lph -lphrender -lPtWeb
SWT_OBJS = swt.o os.o os_structs.o os_custom.o os_stats.o callback.o
all: $(SWT_LIB)
.c.o:
cc $(CFLAGS) $*.c
$(SWT_LIB): $(SWT_OBJS)
cc -o $(SWT_LIB) $(LFLAGS) $(SWT_OBJS)
install: all
cp *.so $(OUTPUT_DIR)
clean:
rm -f *.so *.o