summaryrefslogtreecommitdiff
path: root/package/aboot/src/tools/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/aboot/src/tools/Makefile')
-rw-r--r--package/aboot/src/tools/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/aboot/src/tools/Makefile b/package/aboot/src/tools/Makefile
new file mode 100644
index 000000000..740b9cb9d
--- /dev/null
+++ b/package/aboot/src/tools/Makefile
@@ -0,0 +1,22 @@
+ifndef ($(CC))
+CC = gcc
+endif
+override CFLAGS = -g -O2 -Wall -I. -I../include $(CPPFLAGS)
+override LDFLAGS = -g
+override PGMS += e2writeboot abootconf elfencap objstrip
+
+EXEC_PREFIX = /usr
+
+all: $(PGMS)
+
+install: $(PGMS)
+ install -c -o root -g root -m 755 $(PGMS) $(EXEC_PREFIX)/bin
+
+clean:
+ rm -f *~ *.o *.a core $(PGMS)
+
+isomarkboot: isomarkboot.o ../lib/isolib.o
+e2writeboot: e2writeboot.o e2lib.o bio.o
+
+e2writeboot.o: e2lib.h
+e2lib.o: e2lib.h