summaryrefslogtreecommitdiff
path: root/app-laptop/spicctrl/files/spicctrl-1.9-makefile.patch
blob: ea2935d0296309f55d35c55235e6dfd8871b7133 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,5 @@
-CC = gcc
-CFLAGS = -Wall -W -Wshadow -Wstrict-prototypes -Wcast-qual -Wcast-align \
-         -Wwrite-strings -O2 -pipe
+CFLAGS += -Wall -W -Wshadow -Wstrict-prototypes -Wcast-qual -Wcast-align \
+         -Wwrite-strings
 SRC = spicctrl.c
 OBJ = $(SRC:.c=.o)
 LIBS =
@@ -13,9 +12,6 @@
 
 all: spicctrl
 
-spicctrl: $(OBJ)
-	$(CC) -o spicctrl $(OBJ) $(LIBS)
-
 clean:
 	rm -f $(OBJ) spicctrl *~