git @ Cat's Eye Technologies Sally / rel_1_0_2012_0818 src / Makefile
rel_1_0_2012_0818

Tree @rel_1_0_2012_0818 (Download .tar.gz)

Makefile @rel_1_0_2012_0818raw · history · blame

# GNU Makefile for sally
# Created 2003.1104 Chris Pressey, Cat's Eye Technologies

LIB=../lib/libsally.a
PROG=../bin/sally2c
CC?=gcc
CFLAGS=-ansi -pedantic -g -Wall -O

OBJECTS= sally.o sally2c.o

all: $(LIB) $(PROG)

sally.o: sally.c sally.h

sally2c.o: sally2c.c sally.h

runtime.o: runtime.c

$(LIB): runtime.o
	ar rc $(LIB) runtime.o
	ranlib $(LIB)

../bin/sally2c: $(OBJECTS)
	$(CC) $(OBJECTS) -o $(PROG)
	strip $(PROG)

clean:
	rm -f *.o $(PROG) $(LIB)