You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Baz ¤Ñª° <sk...@yahoo.com> on 2004/02/02 21:49:34 UTC
How can i do what Makefile does in Ant?
All,
If I have a makefile like the one I attached in the end of the
email, how
can i do the followings:
1. How can I create Ant targets that produce OBJS and LIBC and
called by
target all?
2. How can I then move those targets into a template .xml files then
called
by children build.xml by import? Or, is there a better way?
Thanks
Barry
Sample Makefile:
TOPDIR=../../../
include $(TOPDIR)Rules.mak
MSRC=alloc.c
MOBJ=malloc.o realloc.o free.o calloc.o memalign.o
OBJS=$(MOBJ)
all: $(OBJS) $(LIBC)
$(LIBC): ar-target
ar-target: $(OBJS)
$(AR) $(ARFLAGS) $(LIBC) $(OBJS)
$(MOBJ): $(MSRC)
$(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
$(STRIPTOOL) -x -R .note -R .comment $*.o
clean:
rm -f *.[oa] *~ core
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org