ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Baz ¤Ñª° <sky_f...@yahoo.com>
Subject How can i do what Makefile does in Ant?
Date Mon, 02 Feb 2004 20:49:34 GMT
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


Mime
View raw message