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
82
config.mk
Normal file
82
config.mk
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
#####################################################################
|
||||
# C compiler
|
||||
|
||||
# linux
|
||||
CC= gcc
|
||||
CFLAGS= -g -Wall -O2
|
||||
LFLAGS=
|
||||
|
||||
# for BeOS PPC
|
||||
#CC= mwcc
|
||||
#CFLAGS= -I. -i-
|
||||
#LFLAGS=
|
||||
|
||||
#####################################################################
|
||||
# TinyGL configuration
|
||||
|
||||
#####################################################################
|
||||
# Select window API for TinyGL:
|
||||
|
||||
# standard X11 GLX like API
|
||||
TINYGL_USE_GLX=y
|
||||
|
||||
# BEOS API
|
||||
#TINYGL_USE_BEOS=y
|
||||
|
||||
# Micro Windows NanoX API
|
||||
#TINYGL_USE_NANOX=y
|
||||
|
||||
#####################################################################
|
||||
# X11 configuration (for the examples only)
|
||||
|
||||
ifdef TINYGL_USE_GLX
|
||||
# Linux
|
||||
UI_LIBS= -L/usr/X11R6/lib -lX11 -lXext
|
||||
UI_INCLUDES=
|
||||
# Solaris
|
||||
#UI_LIBS= -L/usr/X11/lib -lX11 -lXext -lsocket -lnsl
|
||||
#UI_INCLUDES=
|
||||
|
||||
UI_OBJS=x11.o
|
||||
endif
|
||||
|
||||
#####################################################################
|
||||
# Micro windowX11 configuration (for the examples only)
|
||||
|
||||
ifdef TINYGL_USE_NANOX
|
||||
UI_LIBS= -lnano-X -lmwengine -lmwdrivers -lmwfonts
|
||||
UI_INCLUDES=
|
||||
|
||||
# X11 target for nanoX
|
||||
UI_LIBS+= -L/usr/X11R6/lib -lX11 -lXext
|
||||
|
||||
UI_OBJS=nanox.o
|
||||
endif
|
||||
|
||||
#####################################################################
|
||||
# OpenGL configuration (for the examples only)
|
||||
|
||||
# use TinyGL
|
||||
GL_LIBS= -L../lib -lTinyGL
|
||||
GL_INCLUDES= -I../include
|
||||
GL_DEPS= ../lib/libTinyGL.a
|
||||
|
||||
# use Mesa
|
||||
#GL_LIBS= -lMesaGL
|
||||
#GL_INCLUDES=
|
||||
#GL_DEPS=
|
||||
|
||||
# use OpenGL
|
||||
#GL_LIBS= -lGL
|
||||
#GL_INCLUDES=
|
||||
#GL_DEPS=
|
||||
|
||||
####################################################################
|
||||
# Compile and link control
|
||||
|
||||
# UNIX systems
|
||||
DIRS= src examples
|
||||
|
||||
# BeOS
|
||||
# DIRS= src BeOS
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue