metalsvm/newlib/net/Makefile

30 lines
567 B
Makefile

ARCH = x86
NEWLIB = ../x86/i586-metalsvm-elf32
MAKE = make
STRIP_DEBUG = --strip-debug
KEEP_DEBUG = --only-keep-debug
LDFLAGS =
LIBNAME = libsocket.a
ARFLAGS = ruv
OBJS = accept.o bind.o closesocket.o connect.o listen.o recv.o send.o socket.o
# other implicit rules
%.o : %.c
$(CC_FOR_TARGET) -c $(CFLAGS) -o $@ $<
default: all
all: $(LIBNAME)
$(LIBNAME): $(OBJS)
$(AR_FOR_TARGET) $(ARFLAGS) $@ $(OBJS)
cp $@ $(NEWLIB)/lib
clean:
$(RM) $(LIBNAME) *.o *~
depend:
$(CC_FOR_TARGET) -MM $(CFLAGS) *.c > Makefile.dep
-include Makefile.dep
# DO NOT DELETE