summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2012-07-05 02:49:38 +0200
committerGravatar Nikias Bassen2012-07-05 02:49:38 +0200
commit9a28eef7627b682def960a8ce4d4c19a6222a344 (patch)
tree9041e11b08d2966e54bb1cee41394382c555510c /Makefile
parent12330b0dfe05df6a288e3d9e13588551bff5c6a0 (diff)
downloadlibirecovery-9a28eef7627b682def960a8ce4d4c19a6222a344.tar.gz
libirecovery-9a28eef7627b682def960a8ce4d4c19a6222a344.tar.bz2
Makefile: move 'all' target to the top
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index eece850..43ea8d9 100644
--- a/Makefile
+++ b/Makefile
@@ -80,6 +80,8 @@ IRECOVERY_OBJECTS = irecovery.o libirecovery.a
TARGETS = $(LIBIRECOVERY_STATIC_TARGET) $(IRECOVERY_TARGET)
OBJECTS = libirecovery.o irecovery.o
+all: $(TARGETS)
+
%.o: %.S
$(CC) -c $(<) -o $(@) $(CFLAGS)
@@ -92,10 +94,7 @@ $(LIBIRECOVERY_STATIC_TARGET): $(LIBIRECOVERY_STATIC_OBJECTS)
$(LIBIRECOVERY_SHARED_TARGET): $(LIBIRECOVERY_SHARED_OBJECTS)
$(IRECOVERY_TARGET): $(IRECOVERY_OBJECTS)
- $(CC) -o $(IRECOVERY_TARGET) $(IRECOVERY_OBJECTS) $(IRECOVERY_CFLAGS) $(IRECOVERY_LDFLAGS) $(IRECOVERY_LIBS)
-
-all: $(TARGETS)
-
+ $(CC) -o $(IRECOVERY_TARGET) $(IRECOVERY_OBJECTS) $(IRECOVERY_CFLAGS) $(IRECOVERY_LDFLAGS) $(IRECOVERY_LIBS)
clean:
$(RM) $(LIBIRECOVERY_STATIC_TARGET) $(IRECOVERY_TARGET) *.o