include CPPFLAGS
[debian/yforth] / debian / patches / makefile-support-hardening
1 diff --git a/Makefile b/Makefile
2 index 5e0fddb..301fd02 100644
3 --- a/Makefile
4 +++ b/Makefile
5 @@ -1,4 +1,3 @@
6 -OPTIMIZE = -O2
7  CC = gcc
8  MATHLIB = -lm
9  
10 @@ -13,16 +12,16 @@ INCLUDES = block.h blocke.h config.h core.h coree.h defaults.h double.h \
11         string.h tools.h toolse.h udio.h ver.h ycore.h yforth.h 
12  
13  yforth: div.h $(OBJECTS)
14 -       $(CC) -o yforth $(OBJECTS) $(MATHLIB)
15 +       $(CC) -o yforth $(LDFLAGS) $(OBJECTS) $(MATHLIB)
16  
17  div.h: div
18         ./div 
19         
20  div: division.c
21 -       $(CC) -o div division.c
22 +       $(CC) -o div $(CFLAGS) $(CPPFLAGS) division.c
23  
24  .c.o:   
25 -       $(CC) -c -o $@ $(OPTIMIZE) $<
26 +       $(CC) -c -o $@ $(CFLAGS) $(CPPFLAGS) $<
27  
28  clean:
29         rm -f *.o yforth div.h div