Files
gentoo/dev-lang/clips/files/clips-makefile-remove_hardcoded.patch
Maciej Barć d15bbfd7bc dev-lang/clips: change patch filename
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
2021-11-26 14:08:08 +01:00

34 lines
758 B
Diff

--- a/makefile
+++ b/makefile
@@ -66,8 +66,10 @@ debug : CFLAGS = -std=c99 -O0 -g
debug : LDLIBS = -lm
debug : clips
-release : CC = gcc
-release : CFLAGS = -std=c99 -O3 -fno-strict-aliasing
+release : AR ?=
+release : CC ?=
+release : CFLAGS ?=
+release : LDFLAGS ?=
release : LDLIBS = -lm
release : clips
@@ -88,14 +90,14 @@ release_cpp : LDLIBS = -lstdc++
release_cpp : clips
.c.o :
- $(CC) -c -D$(CLIPS_OS) $(CFLAGS) $(WARNINGS) $<
+ $(CC) -c -D$(CLIPS_OS) $(CFLAGS) $(LDFLAGS) $<
clips : main.o libclips.a
- $(CC) -o clips main.o -L. -lclips $(LDLIBS)
+ $(CC) -o clips main.o -L. -lclips $(CFLAGS) $(LDFLAGS) $(LDLIBS)
libclips.a : $(OBJS)
rm -f $@
- ar cq $@ $(OBJS)
+ $(AR) cq $@ $(OBJS)
clean :
-rm -f main.o $(OBJS)