From 2702c90d7a39fca2a3319c5e915fd290cb31fc70 Mon Sep 17 00:00:00 2001 From: Radosław Kujawa Date: Fri, 17 Jul 2026 14:54:32 +0200 Subject: Initial import. --- examples/Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 examples/Makefile (limited to 'examples/Makefile') diff --git a/examples/Makefile b/examples/Makefile new file mode 100644 index 0000000..c2d2176 --- /dev/null +++ b/examples/Makefile @@ -0,0 +1,20 @@ +# Build the verite-gl example programs against the in-tree libGL + +CC ?= cc +CFLAGS ?= -O2 -mcpu=603e -fsigned-char -fno-strict-aliasing -ffast-math +TOP = .. +GLINC = -I$(TOP)/include +LIBGL = $(TOP)/lib/libGL.a +LIBS = -lm + +PROGS = cube rave + +.PHONY: all clean +all: $(PROGS) + +$(PROGS): %: %.c $(LIBGL) + $(CC) $(CFLAGS) $(GLINC) $< $(LIBGL) $(LIBS) -o $@ + +clean: + rm -f $(PROGS) + -- cgit