# -*-Makefile-*-
# access to the X Window System for Sather
# (c) 1994/11/10 - 1995/07/26 by Erik Schnetter

CC=gcc
CFLAGS=-O3 -I $(SATHER_HOME)
RANLIB=ranlib

TARGET=xlib.a
OBJECTS=\
	any_event.o\
	button_event.o\
	char_struct.o\
	circulate_event.o\
	circulate_request_event.o\
	class_hint.o\
	client_message_event.o\
	color.o\
	colormap.o\
	colormap_event.o\
	configure_event.o\
	configure_request_event.o\
	create_window_event.o\
	crossing_event.o\
	cursor.o\
	destroy_window_event.o\
	display.o\
	drawable.o\
	errorevent.o\
	event.o\
	expose_event.o\
	ext_codes.o\
	ext_data.o\
	focus_change_event.o\
	font.o\
	font_prop.o\
	font_set.o\
	font_struct.o\
	gc.o\
	gc_values.o\
	general.o\
	graphics_expose_event.o\
	gravity_event.o\
	host_address.o\
	icon_size.o\
	image.o\
	key_event.o\
	keyboard_control.o\
	keyboard_state.o\
	keymap_event.o\
	keysym.o\
	map_event.o\
	map_request_event.o\
	mapping_event.o\
	motion_event.o\
	no_expose_event.o\
	pixmap.o\
	pixmap_format_values.o\
	property_event.o\
	region.o\
	reparent_event.o\
	resize_request_event.o\
	screen.o\
	screen_format.o\
	screen_number.o\
	selection_clear_event.o\
	selection_event.o\
	selection_request_event.o\
	set_window_attributes.o\
	size_hints.o\
	standard_colormap.o\
	unmap_event.o\
	visibility_event.o\
	visual.o\
	window.o\
	window_attributes.o\
	window_changes.o\
	wm_hints.o

# normal, incremental method
all::	$(TARGET)($(OBJECTS)) header.h

all::
	$(RANLIB) $(TARGET)

# nice method that doesn't work
#all:	$(TARGET)
#
#$(TARGET):	$(TARGET)($(OBJECTS))
#	$(AR) $(ARFLAGS) $(TARGET) $?
#	$(RM) $?
#	$(RANLIB) $(TARGET)
#
#$(TARGET)($(OBJECTS)):	header.h
#	$(COMPILE.c) $<

# faster method when all files have to be compiled
#new:
#	$(COMPILE.c) $(OBJECTS:.o=.c)
#	$(RM) $(TARGET)
#	$(AR) $(ARFLAGS) $(TARGET) $(OBJECTS)
#	$(RM) $(OBJECTS)
#	$(RANLIB) $(TARGET)

clean:
	$(RM) $(OBJECTS) $(TARGET)

# Local Variables:
# compile-command: "make -k"
# End:
