
CC = @CC@
CFLAGS :=@OSHWCFLAGS@

#
# End of configure section
#

OBJS = sdloshw.o sdltimer.o sdlerr.o sdlin.o sdlout.o sdltext.o \
       sdltile.o sdlsfx.o

#
# The main target
#

liboshw.a: $(OBJS)
	ar crs $@ $^
	cp liboshw.a ..

#
# Object files
#

sdlerr.o  : sdlerr.c sdlgen.h ../gen.h ../oshw.h
sdloshw.o : sdloshw.c sdlgen.h ccicon.c ../gen.h ../oshw.h ../err.h
sdltimer.o: sdltimer.c sdlgen.h ../gen.h ../oshw.h
sdltext.o : sdltext.c sdlgen.h ../gen.h ../oshw.h ../err.h
sdltile.o : sdltile.c sdlgen.h ../gen.h ../oshw.h ../err.h \
            ../defs.h ../state.h
sdlsfx.o  : sdlsfx.c sdlgen.h ../gen.h ../oshw.h ../err.h \
            ../defs.h ../state.h
sdlin.o   : sdlin.c sdlgen.h ../gen.h ../oshw.h ../defs.h
sdlout.o  : sdlout.c sdlgen.h ../gen.h ../oshw.h ../err.h \
            ../defs.h ../state.h

#
# Other
#

all: liboshw.a

clean:
	rm -f $(OBJS) liboshw.a

spotless:
	rm -f $(OBJS) liboshw.a # ccicon.c
	rm -f Makefile
