ugfx/3rdparty/tinygl-0.4-ugfx/examples/Makefile

30 lines
572 B
Makefile
Raw Permalink Normal View History

2014-08-19 15:36:33 +00:00
include ../config.mk
PROGS = mech texobj gears spin
all: $(PROGS)
clean:
rm -f core *.o *~ $(PROGS)
mech: mech.o glu.o $(UI_OBJS) $(GL_DEPS)
$(CC) $(LFLAGS) $^ -o $@ $(GL_LIBS) $(UI_LIBS) -lm
texobj: texobj.o $(UI_OBJS) $(GL_DEPS)
$(CC) $(LFLAGS) $^ -o $@ $(GL_LIBS) $(UI_LIBS) -lm
gears: gears.o $(UI_OBJS) $(GL_DEPS)
$(CC) $(LFLAGS) $^ -o $@ $(GL_LIBS) $(UI_LIBS) -lm
spin: spin.o $(UI_OBJS) $(GL_DEPS)
$(CC) $(LFLAGS) $^ -o $@ $(GL_LIBS) $(UI_LIBS) -lm
.c.o:
$(CC) $(CFLAGS) $(GL_INCLUDES) $(UI_INCLUDES) -c $*.c
mech.o: glu.h
glu.o: glu.h
ui.o: ui.h