build: initial version of a tru64 compiler module
[samba.git] / source3 / samba4-templates.mk
index 3180be30d3d3e3364c5cc7485108d823c7f5a13d..0024a7531f3d83157d328d2bba1fadb73b7c790d 100644 (file)
@@ -19,28 +19,27 @@ endef
 # Link a binary
 # Arguments: target file, depends, flags
 define binary_link_template
-$(1)4: $(2) $(LIBREPLACE_OBJ) ;
+$(1)4: $(2) ;
        @echo Linking $$@
-       @$$(BNLD) $$(BNLD_FLAGS) $$(INTERN_LDFLAGS) -o $$@ $$(INSTALL_LINK_FLAGS) $(3)  $$(LIBS) $$(LIBREPLACE_OBJ)
+       @$$(BNLD) $$(BNLD_FLAGS) $$(INTERN_LDFLAGS) -o $$@ $$(INSTALL_LINK_FLAGS) $(3)  $$(LIBS)
 clean::
        @rm -f $(1)
 
-binaries:: $(1)
-
+everything:: $(1)4
 
 endef
 
 # Link a host-machine binary
 # Arguments: target file, depends, flags
 define host_binary_link_template
-$(1)4: $(2) $(LIBREPLACE_OBJ) ;
+$(1)4: $(2) ;
        @echo Linking $$@
-       @$$(HOSTLD) $$(HOSTLD_FLAGS) -L$${builddir}/bin/static -o $$@ $$(INSTALL_LINK_FLAGS) $(3) $$(LIBREPLACE_OBJ)
+       @$$(HOSTLD) $$(HOSTLD_FLAGS) -L$${builddir}/bin/static -o $$@ $$(INSTALL_LINK_FLAGS) $(3)
 
 clean::
        rm -f $(1)
 
-binaries:: $(1)
+binaries:: $(1)4
 
 
 endef
@@ -58,7 +57,7 @@ clean:: ;
 
 $(1): $(2) ;
        @echo "Creating $$@"
-       @$$(PERL) $$(srcdir)/../samba4/source/script/mkproto.pl --srcdir=$$(srcdir)/../samba4/source --builddir=$$(builddir)/../samba4/source --public=/dev/null --private=$$@ $$^
+       @$$(PERL) $$(srcdir)/../source4/script/mkproto.pl --srcdir=$$(srcdir)/../source4 --builddir=$$(builddir)/../source4 --public=/dev/null --private=$$@ $$^
 endef
 
 # Shared module
@@ -91,7 +90,7 @@ $(4): $(1)
 endif
 
 ifneq ($(notdir $(1)),$(notdir $(5)))
-$(5): $(1)
+$(5): $(1) $(4)
        @echo "Creating symbolic link for $$@"
        @ln -fs $$(<F) $$@
 endif