# Makefile for TinyPTC/x11

PROG     = test
FLAGS    = -s -O3 -w    # Yes, -w :))))
CC       = gcc $(FLAGS)
STRIP	 = strip
INCLUDES = -I/usr/X11R6/include -I/usr/include -I/usr/local/include
LIB      = -L/usr/X11R6/lib -L/usr/lib -L/usr/local/lib -lX11 -lXext \
			-lXxf86dga -lXxf86vm -lpthread
OBJ      = test.o x11.o convert.o ./libmidas.a

$(PROG):	$(OBJ)
		$(CC) $(INCLUDES) $(OBJ) $(LIB) -o $(PROG)
		$(STRIP) --strip-all $(PROG)
		$(STRIP) --remove-section=".comment" $(PROG)
		$(STRIP) --remove-section=".note" $(PROG)

x11.o:		x11.c convert.c tinyptc.h 
convert.o:  convert.c
test.o:		test.c

clean:		
			rm -f $(PROG)
			rm -f test.o x11.o convert.o
# DO NOT DELETE
