# Makefile for compiling simple MiscKit examples
# Written and Copyright (C) 1994, by Don Yacktman, all rights reserved.

NAME = test
TARGET_ARCHS = m68k i386
ARCHIFY = /usr/lib/arch_tool -archify_list
ARCH_FLAGS = `$(ARCHIFY) $(TARGET_ARCHS)`

LIBS = -lMiscKit -lNeXT_s

# If necessary, change these to reflect your installation
CFLAGS = -ObjC -O2 -pipe -Wall -L../../Source -L/LocalDeveloper/Libraries \
                       -I../../Headers $(ARCH_FLAGS)

all: $(NAME)

$(NAME):
	$(CC) $(CFLAGS) -o $(NAME) $(NAME).m $(LIBS)
	strip $(NAME)

clean:
	rm -rf $(NAME)

