# -*- Makefile -*- # Slug Massacre # -*- -*- # # (C)Copyright 1999 by Etherbox Software, all rights reserved. # See COPYING for license details. # # C compiler CC = gcc # debug flags CFLAGS = -g -W -Wall # optimization flags #CFLAGS = -03 -Wall # main libraries LIBS = -lggi # Additional includes. INCLUDE = ./ all: slugmass default: all kbd_event.o: kbd_event.c kbd_event.h slugmass.h rend_event.o: rend_event.c rend_event.h slugmass.h main.o: main.c main.h kbd_event.h rend_event.h slugmass.h slugmass: main.o kbd_event.o rend_event.o $(CC) $(CFLAGS) -I$(INCLUDE) $(LIBS) -o slugmass main.o kbd_event.o rend_event.o .c.o: $(CC) $(CFLAGS) -I$(INCLUDE) -c $< -o $@ clean: rm -f *.o slugmass *~ dist: clean rm -f ../slugmass.tar ../slugmass.tar.gz (cd ..;tar -cf slugmass.tar slugmass) gzip ../slugmass.tar