mirror of
https://codeberg.org/ACM/TinyGL-C89.git
synced 2025-08-17 05:03:32 -04:00
Add C89 support
Allow compilation from C89 compilers.
This commit is contained in:
parent
fb4cb83981
commit
9a779bf1a1
66 changed files with 12202 additions and 0 deletions
30
examples/Makefile
Normal file
30
examples/Makefile
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
include ../config.mk
|
||||
|
||||
PROGS = mech texobj gears spin
|
||||
CFLAGS = -std=c89 -pedantic
|
||||
|
||||
all: $(PROGS)
|
||||
|
||||
clean:
|
||||
rm -f core *.o *~ $(PROGS)
|
||||
|
||||
mech: mech.o glu.o $(UI_OBJS) $(GL_DEPS)
|
||||
$(CC) $(CFLAGS) $(LFLAGS) $^ -o $@ $(GL_LIBS) $(UI_LIBS) -lm
|
||||
|
||||
texobj: texobj.o $(UI_OBJS) $(GL_DEPS)
|
||||
$(CC) $(CFLAGS) $(LFLAGS) $^ -o $@ $(GL_LIBS) $(UI_LIBS) -lm
|
||||
|
||||
gears: gears.o $(UI_OBJS) $(GL_DEPS)
|
||||
$(CC) $(CFLAGS) $(LFLAGS) $^ -o $@ $(GL_LIBS) $(UI_LIBS) -lm
|
||||
|
||||
spin: spin.o $(UI_OBJS) $(GL_DEPS)
|
||||
$(CC) $(CFLAGS) $(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
|
||||
Loading…
Add table
Add a link
Reference in a new issue