################################
# Makefile for Super Truco     #
# by Marcos M. Duma            #
# 	                       #
# Modify for your system       #
#                              #
################################

INCLUDES	= -I/usr/X11/include

# Remove '-DIPC_OK' if you have problems with 'shared-memory' (IPC routines)
OPC		= -DIPC_OK

LIBRARIES	= -lX11 -L/usr/X11/lib

CFILES		= xtruco.c bitmap.c cursor.c display.c event.c gc.c pixmap.c\
		  topwind.c window.c color.c button.c font.c read.c

CC		= gcc -O2 -g -Dlinux -DX11R6 $(INCLUDES) $(OPC)

PROG=xtruco

RM=/bin/rm

OBJS=$(CFILES:.c=.o)

all:	$(OBJS)
	$(CC) -o $(PROG) $(LIBRARIES) $(OBJS)
#	strip ${PROG}

clean:
	${RM} -f ${OBJS}

allclean: 
	${RM} -f ${OBJS} ${PROG} 
