diff options
-rw-r--r-- | GNUmakefile | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/GNUmakefile b/GNUmakefile index c6129ef..bf3a7a0 100644 --- a/GNUmakefile +++ b/GNUmakefile | |||
@@ -37,7 +37,7 @@ LDFLAGS_$(d) += -lssl -lcrypto | |||
37 | 37 | ||
38 | define BUILD_$(d) | 38 | define BUILD_$(d) |
39 | 39 | ||
40 | .INTERMEDIATE: liblua$(1)-openssl | 40 | .INTERMEDIATE: liblua$(1)-openssl openssl$(1) |
41 | 41 | ||
42 | $$(d)/$(1)/openssl.so: $$(d)/$(1)/openssl.o | 42 | $$(d)/$(1)/openssl.so: $$(d)/$(1)/openssl.o |
43 | $$(CC) -o $$@ $$^ $$(SOFLAGS_$$(abspath $$(@D)/..)) $$(SOFLAGS) $$(LDFLAGS_$$(abspath $$(@D)/..)) $$(LDFLAGS) | 43 | $$(CC) -o $$@ $$^ $$(SOFLAGS_$$(abspath $$(@D)/..)) $$(SOFLAGS) $$(LDFLAGS_$$(abspath $$(@D)/..)) $$(LDFLAGS) |
@@ -47,7 +47,7 @@ $$(d)/$(1)/openssl.o: $$(d)/openssl.c $$(d)/compat52.h | |||
47 | $$(MKDIR) -p $$(@D) | 47 | $$(MKDIR) -p $$(@D) |
48 | $$(CC) $$(CFLAGS_$$(<D)) $$(CFLAGS) $$(call LUAPATH_$$(<D), $$(notdir $$(@D)), cppflags) $$(CPPFLAGS_$$(<D)) $$(CPPFLAGS) -c -o $$@ $$< | 48 | $$(CC) $$(CFLAGS_$$(<D)) $$(CFLAGS) $$(call LUAPATH_$$(<D), $$(notdir $$(@D)), cppflags) $$(CPPFLAGS_$$(<D)) $$(CPPFLAGS) -c -o $$@ $$< |
49 | 49 | ||
50 | liblua$(1)-openssl: $$(d)/$(1)/openssl.so | 50 | liblua$(1)-openssl openssl$(1): $$(d)/$(1)/openssl.so |
51 | 51 | ||
52 | endef # BUILD_$(d) | 52 | endef # BUILD_$(d) |
53 | 53 | ||
@@ -84,7 +84,7 @@ MODS$(1)_$(d) = \ | |||
84 | $$(DESTDIR)$(3)/openssl/hmac.lua \ | 84 | $$(DESTDIR)$(3)/openssl/hmac.lua \ |
85 | $$(DESTDIR)$(3)/openssl/cipher.lua | 85 | $$(DESTDIR)$(3)/openssl/cipher.lua |
86 | 86 | ||
87 | .INTERMEDIATE: liblua$(1)-openssl-install | 87 | .INTERMEDIATE: liblua$(1)-openssl-install install$(1) |
88 | 88 | ||
89 | $$(DESTDIR)$(2)/_openssl.so: $$(d)/$(1)/openssl.so | 89 | $$(DESTDIR)$(2)/_openssl.so: $$(d)/$(1)/openssl.so |
90 | $$(MKDIR) -p $$(@D) | 90 | $$(MKDIR) -p $$(@D) |
@@ -110,9 +110,9 @@ $$(DESTDIR)$(3)/openssl/ssl/%.lua: $$(d)/openssl.ssl.%.lua | |||
110 | $$(MKDIR) -p $$(@D) | 110 | $$(MKDIR) -p $$(@D) |
111 | $$(CP) -p $$< $$@ | 111 | $$(CP) -p $$< $$@ |
112 | 112 | ||
113 | liblua$(1)-openssl-install: $$(MODS$(1)_$$(d)) | 113 | liblua$(1)-openssl-install install$(1): $$(MODS$(1)_$$(d)) |
114 | 114 | ||
115 | .PHONY: liblua$(1)-openssl-uninstall uninstall | 115 | .PHONY: liblua$(1)-openssl-uninstall uninstall$(1) uninstall |
116 | 116 | ||
117 | liblua$(1)-openssl-uninstall: | 117 | liblua$(1)-openssl-uninstall: |
118 | $$(RM) -f $$(MODS$(1)_$(d)) | 118 | $$(RM) -f $$(MODS$(1)_$(d)) |
@@ -120,6 +120,8 @@ liblua$(1)-openssl-uninstall: | |||
120 | -$$(RMDIR) $$(DESTDIR)$(3)/openssl/ssl | 120 | -$$(RMDIR) $$(DESTDIR)$(3)/openssl/ssl |
121 | -$$(RMDIR) $$(DESTDIR)$(3)/openssl | 121 | -$$(RMDIR) $$(DESTDIR)$(3)/openssl |
122 | 122 | ||
123 | uninstall$(1): liblua$(1)-openssl-uninstall | ||
124 | |||
123 | endef # INSTALL_$(d) | 125 | endef # INSTALL_$(d) |
124 | 126 | ||
125 | $(eval $(call INSTALL_$(d),5.1,$$(lua51cpath),$$(lua51path))) | 127 | $(eval $(call INSTALL_$(d),5.1,$$(lua51cpath),$$(lua51path))) |