# $Id$ CC = owcc CFLAGS = LDFLAGS = LIBS = STACK = -mstack-size=8192 -b $(PLATFORM) OBJS = main.o render.o util.o version.o wblogo.o driver.o language.o EXEC = .exe .PHONY: clean all ./Driver .SUFFIXES: .c .o .drvc .drv all: wrtbook$(EXEC) ./Driver wrtbook$(EXEC): $(OBJS) $(CC) $(LDFLAGS) $(STACK) -o $@ $(OBJS) $(LIBS) .c.o: $(CC) $(CFLAGS) -D$(MODE) $(STACK) -c -o $@ $< ./Driver: $(MAKE) -C ./Driver TARGET="p_plain" CC="$(CC)" CFLAGS="$(CFLAGS)" MODE="$(MODE)" STACK="$(STACK)" LDFLAGS="$(LDFLAGS)" LIBS="$(LIBS)" EXEC="$(EXEC)" clean: rm -f *.o *.exe Driver/*.drv Compat/*.o wrtbook $(MAKE) -C ./Driver clean