aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index d75a9df..8866dc6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,17 @@
-all: uskel
+SYMSRCS=$(wildcard *.s)
+OBJS=$(SYMSRCS:.s=.o)
+PROGS=$(SYMSRCS:.s=)
+
+.SUFFIXES:
+
+all: $(PROGS)
clean:
- rm -f uskel.o uskel
+ rm -f $(OBJS) $(PROGS)
-uskel.o: uskel.s $(wildcard *.s)
+%.o: %.s $(wildcard include/*.s)
as $< -o $@
-uskel: uskel.o
+%: %.o
ld $@.o -o $@