# Makefile to compile program 'gtDemo' which demonstrates the use of 
# the minimal graphic toolkit 'gt' under UNIX with gcc.
# On other systems, just put 'gtDemo.c' and 'gt.c' together in a new C project.
# Pieter Suurmond november 25, 2002.

       # Name of executable (may be full (install-)pathname):
PRG    = gtDemo

       # Compiler to user (or just 'cc'):
CC     = gcc

       # Source files:
SRC    = gtDemo.c\
         gt.c

       # Compiler optimization level
       # ('-Wall' not recognised by MIPS compiler on SGI, use it for gcc only):
CFLAGS = -O2 -Wall

       # Objects (separate sources become separate objects):
OBJ    = $(SRC:.c=.o)


all: $(PRG)

$(PRG): $(OBJ)
	$(CC) $(CFLAGS) $(OBJ) -o $(PRG)

clean:
	-rm *.o $(OBJ) $(PRG) *.jpg core
