Renamed AROS_SRC/AROS_SRCDIR variable to SRCDIR
[AROS.git] / tools / MetaMake / Makefile.in
blob3126ae3201a6ffb80def589840f76c6df5b169ac
1 ANSI2KNR = @ANSI2KNR@
2 MKDIR_P = @MKDIR_P@
3 CC = @CC@
4 CCLD = $(CC)
5 CFLAGS = @CFLAGS@
6 CPPFLAGS = @CPPFLAGS@
7 DEFS = @DEFS@
8 EXEEXT = @EXEEXT@
9 LDFLAGS = @LDFLAGS@
10 LIBS = @LIBS@
11 bindir = @bindir@
12 mmsrcdir = @METAMAKE_SRCDIR@
13 mmake_LDADD = $(LDADD)
14 mmake_objdir = @mmake_objdir@
15 DEPDIR = $(mmake_objdir)/.deps
16 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
17 DEFAULT_INCLUDES = -I.$(mmsrcdir) -I.$(SRCDIR)
18 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
19 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
20 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
22 all: makedirs $(mmake_objdir)/mmake$(EXEEXT)
24 makedirs:
25 @for dir in $(mmake_objdir) $(DEPDIR) ; do \
26 if [ ! -d $$dir ]; then \
27 $(MKDIR_P) "$$dir" ; \
28 else true ; fi ; \
29 done
31 $(mmake_objdir)/mmake.o: $(mmsrcdir)/mmake.c
32 $(COMPILE) -MT $(mmake_objdir)/mmake.o -MD -MP -MF $(DEPDIR)/mmake.Tpo -c -o $(mmake_objdir)/mmake.o $(mmsrcdir)/mmake.c
33 mv -f $(DEPDIR)/mmake.Tpo $(DEPDIR)/mmake.Po
35 $(mmake_objdir)/mem.o: $(mmsrcdir)/mem.c
36 $(COMPILE) -MT $(mmake_objdir)/mem.o -MD -MP -MF $(DEPDIR)/mem.Tpo -c -o $(mmake_objdir)/mem.o $(mmsrcdir)/mem.c
37 mv -f $(DEPDIR)/mem.Tpo $(DEPDIR)/mem.Po
39 $(mmake_objdir)/list.o: $(mmsrcdir)/list.c
40 $(COMPILE) -MT $(mmake_objdir)/list.o -MD -MP -MF $(DEPDIR)/list.Tpo -c -o $(mmake_objdir)/list.o $(mmsrcdir)/list.c
41 mv -f $(DEPDIR)/list.Tpo $(DEPDIR)/list.Po
43 $(mmake_objdir)/var.o: $(mmsrcdir)/var.c
44 $(COMPILE) -MT $(mmake_objdir)/var.o -MD -MP -MF $(DEPDIR)/var.Tpo -c -o $(mmake_objdir)/var.o $(mmsrcdir)/var.c
45 mv -f $(DEPDIR)/var.Tpo $(DEPDIR)/var.Po
47 $(mmake_objdir)/dirnode.o: $(mmsrcdir)/dirnode.c
48 $(COMPILE) -MT $(mmake_objdir)/dirnode.o -MD -MP -MF $(DEPDIR)/dirnode.Tpo -c -o $(mmake_objdir)/dirnode.o $(mmsrcdir)/dirnode.c
49 mv -f $(DEPDIR)/dirnode.Tpo $(DEPDIR)/dirnode.Po
51 $(mmake_objdir)/dep.o: $(mmsrcdir)/dep.c
52 $(COMPILE) -MT $(mmake_objdir)/dep.o -MD -MP -MF $(DEPDIR)/dep.Tpo -c -o $(mmake_objdir)/dep.o $(mmsrcdir)/dep.c
53 mv -f $(DEPDIR)/dep.Tpo $(DEPDIR)/dep.Po
55 $(mmake_objdir)/project.o: $(mmsrcdir)/project.c
56 $(COMPILE) -MT $(mmake_objdir)/project.o -MD -MP -MF $(DEPDIR)/project.Tpo -c -o $(mmake_objdir)/project.o $(mmsrcdir)/project.c
57 mv -f $(DEPDIR)/project.Tpo $(DEPDIR)/project.Po
59 $(mmake_objdir)/cache.o: $(mmsrcdir)/cache.c
60 $(COMPILE) -MT $(mmake_objdir)/cache.o -MD -MP -MF $(DEPDIR)/cache.Tpo -c -o $(mmake_objdir)/cache.o $(mmsrcdir)/cache.c
61 mv -f $(DEPDIR)/cache.Tpo $(DEPDIR)/cache.Po
63 $(mmake_objdir)/io.o: $(mmsrcdir)/io.c
64 $(COMPILE) -MT $(mmake_objdir)/io.o -MD -MP -MF $(DEPDIR)/io.Tpo -c -o $(mmake_objdir)/io.o $(mmsrcdir)/io.c
65 mv -f $(DEPDIR)/io.Tpo $(DEPDIR)/io.Po
67 $(mmake_objdir)/mmake$(EXEEXT): $(mmake_OBJECTS)
68 @rm -f $(mmake_objdir)/mmake$(EXEEXT)
69 $(LINK) $(mmake_OBJECTS) $(mmake_LDADD) $(LIBS)
71 # Clean the sources
72 clean:
73 -@rm -rf $(mmake_objdir) Makefile config.cache config.status config.log config.h
75 # Clean the sources and tools
76 arch-clean: clean
78 install : makedirs $(mmake_objdir)/mmake$(EXEEXT)
79 cp $(mmake_objdir)/mmake$(EXEEXT) $(bindir)