# Unix/Linux style Makefile for BitFontEditor: pat2sf by David S. Lawyer.
# This file is used for compiling the source code and works with most
# C compilers.  If you are not using a Unix-like system, you likely need
# to tell your compiler that you are using a Unix-style makefile.
# Works fine with the gnu gcc compiler.  sf2pat will be made using 
# default rules.  On Unix-like systems simply type "make" to compile.

PROGS=	pat2sf sf2pat
OBJS=   scan.o encode.o	

#  For gnu compiler: -g adds debugging info   -ansi insures ansi legal.
# CFLAGS=	-g -ansi

all:	$(PROGS)

# This shows that pat2sf depends on OBJS and shows how to make it
pat2sf: $(OBJS)
	$(CC) -o pat2sf $(OBJS)

# This shows OBJS depend on pat2sf.h
$(OBJS): pat2sf.h 

# This defines the rule for making OBJS.  $< stands for the %.c files
$(OBJS) sf2pat.o: %.o : %.c
	$(CC) -c $(CFLAGS) $<

clean:
	rm $(OBJS) sf2pat.o
