CC = gcc
CCOPTIONS = -m486 -g -Wall

# linker and libraries to link
LINK = gcc
LIBS = -lggi -ljpeg

%.o:	%.c
	$(CC) $(CCOPTIONS) -c -o $*.o $< $(INCLUDE)

.SUFFIXES:
OBJECTS= peggy.o cmdline.o jpeg.o

all:	peggy


peggy:	$(OBJECTS)
	$(LINK) -o peggy $(OBJECTS) $(LIBS)
	strip peggy
clean:
	rm -f *.o peggy
