diff options
| author | Radosław Kujawa <radoslaw.kujawa@c0ff33.net> | 2026-07-17 14:54:32 +0200 |
|---|---|---|
| committer | Radosław Kujawa <radoslaw.kujawa@c0ff33.net> | 2026-07-17 14:54:32 +0200 |
| commit | 2702c90d7a39fca2a3319c5e915fd290cb31fc70 (patch) | |
| tree | 283c4d851efef7e3a7cd03ba80c87e2bffcdbb2c /examples/Makefile | |
| parent | 836167945ec2c7ad5acdf0aa17ce35ec1b9428a6 (diff) | |
Initial import.
Diffstat (limited to 'examples/Makefile')
| -rw-r--r-- | examples/Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
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) + |
