1# 2# 3include ../libsx_defs 4 5LOCAL_LIBS = -lm 6 7# the object files which the program depends on 8OBJS = main.o callbacks.o bezier.o gfx.o 9 10bez : $(OBJS) 11 $(CC) -o bez $(OBJS) $(LIBS) $(LOCAL_LIBS) 12 13 14# main.o depends on main.c (of course) and main.h and callbacks.h 15main.o : main.c main.h callbacks.h gfx.h 16 17callbacks.o : gfx.h callbacks.c main.h 18 19gfx.o : gfx.c gfx.h 20 21 22clean: 23 rm -f *.o *~ core bez 24