12 mmake_srcdir
= @METAMAKE_SRCDIR@
13 mmake_blddir
= @METAMAKE_BUILDDIR@
14 mmake_objdir
= @mmake_objdir@
15 mmake_LDADD
= $(LDADD
)
17 DEPDIR
= $(mmake_objdir
)/.deps
18 mmake_OBJECTS
= $(mmake_objdir
)/mmake.o
$(mmake_objdir
)/mem.o
$(mmake_objdir
)/list.o
$(mmake_objdir
)/var.o
$(mmake_objdir
)/dirnode.o
$(mmake_objdir
)/dep.o
$(mmake_objdir
)/project.o
$(mmake_objdir
)/cache.o
$(mmake_objdir
)/io.o
19 DEFAULT_INCLUDES
= -I
$(mmake_blddir
) -I
$(mmake_srcdir
)
20 LINK
= $(CCLD
) $(AM_CFLAGS
) $(CFLAGS
) $(AM_LDFLAGS
) $(LDFLAGS
) -o
$@
21 COMPILE
= $(CC
) $(DEFS
) $(DEFAULT_INCLUDES
) $(INCLUDES
) $(AM_CPPFLAGS
) \
22 $(CPPFLAGS
) $(AM_CFLAGS
) $(CFLAGS
)
25 LIBS
+= -liberty
-lws2_32
28 all: makedirs
$(mmake_objdir
)/mmake
$(EXEEXT
)
31 @for
dir in
$(mmake_objdir
) $(DEPDIR
) ; do \
32 if
[ ! -d
$$dir ]; then \
33 $(MKDIR_P
) "$$dir" ; \
37 $(mmake_objdir
)/mmake.o
: $(mmake_srcdir
)/mmake.c
38 $(COMPILE
) -MT
$(mmake_objdir
)/mmake.o
-MD
-MP
-MF
$(DEPDIR
)/mmake.Tpo
-c
-o
$(mmake_objdir
)/mmake.o
$(mmake_srcdir
)/mmake.c
39 mv
-f
$(DEPDIR
)/mmake.Tpo
$(DEPDIR
)/mmake.Po
41 $(mmake_objdir
)/mem.o
: $(mmake_srcdir
)/mem.c
42 $(COMPILE
) -MT
$(mmake_objdir
)/mem.o
-MD
-MP
-MF
$(DEPDIR
)/mem.Tpo
-c
-o
$(mmake_objdir
)/mem.o
$(mmake_srcdir
)/mem.c
43 mv
-f
$(DEPDIR
)/mem.Tpo
$(DEPDIR
)/mem.Po
45 $(mmake_objdir
)/list.o
: $(mmake_srcdir
)/list.c
46 $(COMPILE
) -MT
$(mmake_objdir
)/list.o
-MD
-MP
-MF
$(DEPDIR
)/list.Tpo
-c
-o
$(mmake_objdir
)/list.o
$(mmake_srcdir
)/list.c
47 mv
-f
$(DEPDIR
)/list.Tpo
$(DEPDIR
)/list.Po
49 $(mmake_objdir
)/var.o
: $(mmake_srcdir
)/var.c
50 $(COMPILE
) -MT
$(mmake_objdir
)/var.o
-MD
-MP
-MF
$(DEPDIR
)/var.Tpo
-c
-o
$(mmake_objdir
)/var.o
$(mmake_srcdir
)/var.c
51 mv
-f
$(DEPDIR
)/var.Tpo
$(DEPDIR
)/var.Po
53 $(mmake_objdir
)/dirnode.o
: $(mmake_srcdir
)/dirnode.c
54 $(COMPILE
) -MT
$(mmake_objdir
)/dirnode.o
-MD
-MP
-MF
$(DEPDIR
)/dirnode.Tpo
-c
-o
$(mmake_objdir
)/dirnode.o
$(mmake_srcdir
)/dirnode.c
55 mv
-f
$(DEPDIR
)/dirnode.Tpo
$(DEPDIR
)/dirnode.Po
57 $(mmake_objdir
)/dep.o
: $(mmake_srcdir
)/dep.c
58 $(COMPILE
) -MT
$(mmake_objdir
)/dep.o
-MD
-MP
-MF
$(DEPDIR
)/dep.Tpo
-c
-o
$(mmake_objdir
)/dep.o
$(mmake_srcdir
)/dep.c
59 mv
-f
$(DEPDIR
)/dep.Tpo
$(DEPDIR
)/dep.Po
61 $(mmake_objdir
)/project.o
: $(mmake_srcdir
)/project.c
62 $(COMPILE
) -MT
$(mmake_objdir
)/project.o
-MD
-MP
-MF
$(DEPDIR
)/project.Tpo
-c
-o
$(mmake_objdir
)/project.o
$(mmake_srcdir
)/project.c
63 mv
-f
$(DEPDIR
)/project.Tpo
$(DEPDIR
)/project.Po
65 $(mmake_objdir
)/cache.o
: $(mmake_srcdir
)/cache.c
66 $(COMPILE
) -MT
$(mmake_objdir
)/cache.o
-MD
-MP
-MF
$(DEPDIR
)/cache.Tpo
-c
-o
$(mmake_objdir
)/cache.o
$(mmake_srcdir
)/cache.c
67 mv
-f
$(DEPDIR
)/cache.Tpo
$(DEPDIR
)/cache.Po
69 $(mmake_objdir
)/io.o
: $(mmake_srcdir
)/io.c
70 $(COMPILE
) -MT
$(mmake_objdir
)/io.o
-MD
-MP
-MF
$(DEPDIR
)/io.Tpo
-c
-o
$(mmake_objdir
)/io.o
$(mmake_srcdir
)/io.c
71 mv
-f
$(DEPDIR
)/io.Tpo
$(DEPDIR
)/io.Po
73 $(mmake_objdir
)/mmake
$(EXEEXT
): $(mmake_OBJECTS
)
74 @
rm -f
$(mmake_objdir
)/mmake
$(EXEEXT
)
75 $(LINK
) $(mmake_OBJECTS
) $(mmake_LDADD
) $(LIBS
)
79 -@
rm -rf
$(mmake_objdir
) Makefile config.cache config.status config.log config.h
81 # Clean the sources and tools
84 install : makedirs
$(mmake_objdir
)/mmake
$(EXEEXT
)
85 cp
$(mmake_objdir
)/mmake
$(EXEEXT
) $(bindir)