GLdc/Makefile

37 lines
990 B
Makefile
Raw Normal View History

# KallistiOS ##version##
#
# 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
TARGET = libGLdc.a
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 GL/version.h
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
SUBDIRS =
2019-03-28 13:12:00 +00:00
KOS_CFLAGS += -ffast-math -Ofast -Iinclude
GL/version.h:
@echo -e '#pragma once\n#define GLDC_VERSION "$(shell git describe --abbrev=4 --dirty --always --tags)"\n' > $@
link:
$(KOS_AR) rcs $(TARGET) $(OBJS)
build: GL/version.h $(OBJS) link
samples: build
$(KOS_MAKE) -C samples all
2020-01-01 14:12:12 +00:00
defaultall: GL/version.h create_kos_link $(OBJS) subdirs linklib samples
2012-07-06 14:01:41 +00:00
include $(KOS_BASE)/addons/Makefile.prefab
2012-07-06 14:01:41 +00:00
# creates the kos link to the headers
create_kos_link:
2020-01-01 14:13:34 +00:00
GL/version.h
2012-07-06 14:01:41 +00:00
rm -f ../include/GL
ln -s ../GLdc/include ../include/GL