summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBertrand Jacquin <beber@meleeweb.net>2012-12-11 01:38:06 +0100
committerBertrand Jacquin <beber@meleeweb.net>2012-12-11 01:38:06 +0100
commit07beb4144ebbe61a3cf53f36d733c6b141143fee (patch)
tree97d2c72e8c6227f1db51500871a4e5cc9bfdd6ba
parent[CLEANUP] vv_replace_HTTP() is looking for header values, not only Host: (diff)
downloadmod_virtualvalue-07beb4144ebbe61a3cf53f36d733c6b141143fee.tar.gz
[CLEANUP] Move %.c compilation before libary build
Only for cosmetic
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index e8e000d..b7efce0 100644
--- a/Makefile
+++ b/Makefile
@@ -98,6 +98,10 @@ strip-static: $(NAME).a.strip
strip-shared: $(NAME).so.strip
strip: strip-shared
+%.o: %.c
+ $(call quiet_cmd,CC,$@)
+ $(Q)$(CC) -c $(SPEC_CFLAGS) $(CFLAGS) -o $@ $<
+
$(NAME).a: $(SRC:c=o)
$(call quiet_cmd,AR,$@)
$(Q)$(AR) cru $@ $^
@@ -106,10 +110,6 @@ $(NAME).so: $(SRC:c=o)
$(call quiet_cmd,LD,$@)
$(Q)$(LD) -shared -z now -o $@ $^ $(SPEC_LDFLAGS) $(LDFLAGS) -soname $@
-%.o: %.c
- $(call quiet_cmd,CC,$@)
- $(Q)$(CC) -c $(SPEC_CFLAGS) $(CFLAGS) -o $@ $<
-
%.strip: %
$(call quiet_cmd,STRIP,$@)
$(Q)$(STRIP) $(STRIP_FLAGS) -o $@ $<