projects
/
debian
/
yforth
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modify upstream makefile to allow hardening build flags to apply
[debian/yforth]
/
Makefile
diff --git
a/Makefile
b/Makefile
index f5d210829fe1d61c25ba2d989b8eef76b6413b58..301fd02cc454a0d92058e20903b64196ef8c5e84 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,4
+1,3
@@
-OPTIMIZE = -O2
CC = gcc
MATHLIB = -lm
CC = gcc
MATHLIB = -lm
@@
-12,19
+11,17
@@
INCLUDES = block.h blocke.h config.h core.h coree.h defaults.h double.h \
floate.h locals.h localse.h macro.h memall.h search.h searche.h \
string.h tools.h toolse.h udio.h ver.h ycore.h yforth.h
floate.h locals.h localse.h macro.h memall.h search.h searche.h \
string.h tools.h toolse.h udio.h ver.h ycore.h yforth.h
-all:
- make div
- make yforth
-
-yforth: $(OBJECTS)
- $(CC) $(MATHLIB) -o yforth $(OBJECTS)
+yforth: div.h $(OBJECTS)
+ $(CC) -o yforth $(LDFLAGS) $(OBJECTS) $(MATHLIB)
+div.h: div
+ ./div
+
div: division.c
div: division.c
- $(CC) -o div division.c
- div > div.h
+ $(CC) -o div $(CFLAGS) division.c
.c.o:
.c.o:
- $(CC) -c -o $@ $(
OPTIMIZE
) $<
+ $(CC) -c -o $@ $(
CFLAGS
) $<
clean:
rm -f *.o yforth div.h div
clean:
rm -f *.o yforth div.h div