2003-10-13 00:41:10 +00:00
|
|
|
# KallistiOS ##version##
|
|
|
|
#
|
2014-08-16 18:09:37 +00:00
|
|
|
# kos-ports/libgl Makefile
|
|
|
|
# Copyright (C) 2013, 2014 Josh Pearson
|
|
|
|
# Copyright (C) 2014 Lawrence Sebald
|
2018-05-14 16:10:53 +00:00
|
|
|
# Copyright (C) 2018 Luke Benstead
|
2003-10-13 00:41:10 +00:00
|
|
|
|
2018-05-21 18:55:20 +00:00
|
|
|
TARGET = libGLdc.a
|
2018-05-29 18:39:27 +00:00
|
|
|
OBJS = GL/draw.o GL/flush.o GL/framebuffer.o GL/immediate.o GL/lighting.o GL/state.o GL/texture.o GL/glu.o
|
2018-08-16 16:51:15 +00:00
|
|
|
OBJS += GL/matrix.o GL/fog.o GL/error.o GL/clip.o containers/stack.o containers/named_array.o containers/aligned_vector.o GL/profiler.o
|
2014-09-29 02:40:41 +00:00
|
|
|
|
2003-10-13 00:41:10 +00:00
|
|
|
SUBDIRS =
|
|
|
|
|
2019-03-28 13:12:00 +00:00
|
|
|
KOS_CFLAGS += -ffast-math -Ofast -Iinclude
|
2014-08-16 18:09:37 +00:00
|
|
|
|
2018-01-18 19:52:54 +00:00
|
|
|
link:
|
|
|
|
$(KOS_AR) rcs $(TARGET) $(OBJS)
|
|
|
|
|
|
|
|
build: $(OBJS) link
|
|
|
|
|
|
|
|
|
2018-05-29 12:12:38 +00:00
|
|
|
samples: build
|
|
|
|
$(KOS_MAKE) -C samples all
|
|
|
|
|
|
|
|
defaultall: create_kos_link $(OBJS) subdirs linklib samples
|
2003-10-13 00:41:10 +00:00
|
|
|
|
2012-07-06 14:01:41 +00:00
|
|
|
include $(KOS_BASE)/addons/Makefile.prefab
|
2003-10-13 00:41:10 +00:00
|
|
|
|
2012-07-06 14:01:41 +00:00
|
|
|
# creates the kos link to the headers
|
|
|
|
create_kos_link:
|
|
|
|
rm -f ../include/GL
|
2018-05-21 18:55:20 +00:00
|
|
|
ln -s ../GLdc/include ../include/GL
|