1################################
2# Makefile for Super Truco     #
3# by Marcos M. Duma            #
4# 	                       #
5# Modify for your system       #
6#                              #
7################################
8
9INCLUDES	= -I${LOCALBASE}/include
10
11# Remove '-DIPC_OK' if you have problems with 'shared-memory' (IPC routines)
12OPC		= -DIPC_OK
13
14LIBRARIES	= -lX11 -L${LOCALBASE}/lib
15
16CFILES		= xtruco.c bitmap.c cursor.c display.c event.c gc.c pixmap.c\
17		  topwind.c window.c color.c button.c font.c read.c
18
19CC		?= gcc
20CFLAGS		+= -DX11R6 $(INCLUDES) $(OPC)
21
22PROG=xtruco
23
24RM=/bin/rm
25
26OBJS=$(CFILES:.c=.o)
27
28all:	$(OBJS)
29	$(CC) $(CFLAGS) -o $(PROG) $(LIBRARIES) $(OBJS)
30#	strip ${PROG}
31
32clean:
33	${RM} -f ${OBJS}
34
35allclean:
36	${RM} -f ${OBJS} ${PROG}
37