# Makefile -- For Alltalk
# For HP-UX

VPATH		= library:source 

includes	= -I/usr/include -I/usr/include/X11 
clibs		= -lX11 -lm
#cflags		= -Ae -g -Wl,+vnocompatwarnings
cflags		= -Ae -O -Wl,+vnocompatwarnings

objects =	Array.o \
		Association.o \
		BinaryFile.o \
	 	ByteArray.o \
		Class.o \
		Clipboard.o \
		Context.o \
		Dictionary.o \
		Directory.o \
		Event.o \
		File.o \
		Font.o \
		Image.o \
		Integer.o \
		IntegerArray.o \
		LexFile.o \
		Listener.o \
		Literal.o \
		Method.o \
		Module.o \
		Object.o \
		Real.o \
		RealArray.o \
		Rectangle.o \
		Scalar.o \
		Selector.o \
		SerialFile.o \
		SmallArray.o \
		Socket.o \
		String.o \
		StringFile.o \
		System.o \
		Window.o \
		aainit.o \
		application.o \
		charq.o \
		compiler.o \
		cvtNumber.o \
		heap.o \
		lex.o \
		lineq.o \
		stringNew.o \
		virtualMachine.o \
		unixMain.o \
		unixClipboard.o \
		unixCurse.o \
		unixBinFile.o \
		unixDirectory.o \
		unixError.o \
		unixGetFile.o \
		unixGraph.o \
		unixMemory.o \
		hpuxModule.o \
		unixSerFile.o \
		unixShell.o \
		unixSocket.o \
		unixStartup.o \
		unixStrFile.o \
		unixSystem.o \
		unixTask.o \
		unixTime.o \
		unixWinFile.o \
		Interface.o \
		DownTCP.o

.c.o :
	cc $(cflags) $(includes) -c $< -o library/$*.o

alltalk : $(objects)
	cc $(cflags) library/*.o $(clibs) -o alltalk

clean :
	rm -f library/*.o
	rm -f alltalk

