summarylogtreecommitdiffstats
path: root/makefile_update.patch
diff options
context:
space:
mode:
authorLara Maia2015-06-12 00:35:05 -0300
committerLara Maia2015-06-12 00:35:05 -0300
commitabdc9d5f3417ebeb79bfee03b40d7af710639035 (patch)
treebb05212c9b1d2a81cd19daeb23e4913536b09fa6 /makefile_update.patch
downloadaur-abdc9d5f3417ebeb79bfee03b40d7af710639035.tar.gz
Initial import
Diffstat (limited to 'makefile_update.patch')
-rw-r--r--makefile_update.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/makefile_update.patch b/makefile_update.patch
new file mode 100644
index 00000000000..f1de2df896b
--- /dev/null
+++ b/makefile_update.patch
@@ -0,0 +1,23 @@
+--- Makefile.orig 2012-07-29 02:06:22.819373027 -0300
++++ Makefile 2012-07-29 02:07:19.739370225 -0300
+@@ -1,5 +1,8 @@
++prefix = /usr
++bindir = $(prefix)/bin
+ CC = gcc
+-CFLAGS = -O2 #-DDEBUG -g
++INSTALL = install
++CFLAGS = -O2 -Wall #-DDEBUG -g
+ OBJFILES = cpuled.o
+ PROGRAM = cpuled
+ VERSION = 0.1
+@@ -7,6 +10,10 @@
+ all: $(OBJFILES)
+ $(CC) $(CFLAGS) $(OBJFILES) -o $(PROGRAM)
+
++install: all
++ $(INSTALL) -d $(DESTDIR)$(bindir)
++ $(INSTALL) -m755 $(PROGRAM) $(DESTDIR)$(bindir)/$(PROGRAM)
++
+ clean:
+ -rm $(OBJFILES)
+ -rm cpuled