# NETSCAPE COMMUNICATIONS CORPORATION
#
# Copyright (c) 1998 Netscape Communications Corporation.
# All Rights Reserved.
#
# Use of this Source Code is subject to the terms of the applicable
# license agreement from Netscape Communications Corporation.
#
# The copyright notice(s) in this Source Code does not indicate
# actual or intended publication of this Source Code.
#
# Sample Makefile for Netscape Messaging Server Plugin

# Name of the plugin to build
TARGET=sample

# Use one of the following
SHARED_SUFFIX=so

# Use one of the following
CC=gcc -fPIC -I../include -shared
#CC=cc -KPIC -I../include -G

# Use one of the following
FLAGS = -DXP_UNIX
#FLAGS = -DXP_WIN32

# Use zero or more of the following
#FLAGS += -D_DEBUG

all: $(TARGET).$(SHARED_SUFFIX)

$(TARGET).$(SHARED_SUFFIX): $(TARGET).c ../include/msg4plugins.h
        $(CC) $(FLAGS) -o $(TARGET).$(SHARED_SUFFIX) $(TARGET).c
sample.o

clean:
        rm -f $(TARGET).$(SHARED_SUFFIX)
