summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index f36ca69..b82a41e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,12 @@
+CFLAGS += -Wall -Wextra
+
all: initramfs.img
-initramfs.img: gen_init_cpio dropbear_ed25519_host_key modules.sh
+initramfs.img: gen_init_cpio load-random-seed dropbear_ed25519_host_key modules.sh
./make
-gen_init_cpio: gen_init_cpio.c
- $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) gen_init_cpio.c -o $@
+%: %.c
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $< -o $@
dropbear_ed25519_host_key:
dropbearkey -t ed25519 -f $@
@@ -20,7 +22,7 @@ install: initramfs.img
mv /boot/initramfs.img.new /boot/initramfs.img
clean:
- rm -f initramfs.img initramfs.d gen_init_cpio
+ rm -f initramfs.img initramfs.d gen_init_cpio load-random-seed
-include initramfs.d