diff options
Diffstat (limited to 'clients/net-snk/libc/time/Makefile')
-rw-r--r-- | clients/net-snk/libc/time/Makefile | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/clients/net-snk/libc/time/Makefile b/clients/net-snk/libc/time/Makefile new file mode 100644 index 0000000..1db98e7 --- /dev/null +++ b/clients/net-snk/libc/time/Makefile @@ -0,0 +1,43 @@ +# ***************************************************************************** +# * Copyright (c) 2004, 2007 IBM Corporation +# * All rights reserved. +# * This program and the accompanying materials +# * are made available under the terms of the BSD License +# * which accompanies this distribution, and is available at +# * http://www.opensource.org/licenses/bsd-license.php +# * +# * Contributors: +# * IBM Corporation - initial implementation +# ****************************************************************************/ + + +ifndef TOP + TOP = $(shell while ! test -e make.rules; do cd .. ; done; pwd) + export TOP + +endif +include $(TOP)/make.rules + + +CFLAGS = -g -I$(TOP)/include -I$(LIBCMNDIR)/libc/include -O2 -msoft-float \ + -Wall -fno-builtin -ffreestanding -nostdinc +LDFLAGS= -nostdlib + + +OBJS=timer.c ftime.c + + +all: time.o + + +time.o: $(OBJS:.c=.o) + $(LD) $(LDFLAGS) -r $^ -o $@ + +%.o : %.c + $(CC) $(CFLAGS) -c $^ -o $@ + + +clean: + $(RM) -f *.o *.i *.s + +distclean mrproper: clean |