metalsvm/libkern/Makefile
stefan 6f2bc1ccc8 - rename directory
git-svn-id: http://svn.lfbs.rwth-aachen.de/svn/scc/trunk/MetalSVM@44 315a16e6-25f9-4109-90ae-ca3045a26c18
2010-08-05 13:04:02 +00:00

25 lines
436 B
Makefile

C_source = string.c stdio.c printf.c qdivrem.c udivdi3.c umoddi3.c
OBJS += $(patsubst %.c, %.o, $(filter %.c, $(C_source)))
# other implicit rules
%.o : %.c
$(CC) -c $(CFLAGS) -o $@ $<
default:
$(MAKE) all
all:
$(MAKE) $(LIBNAME)
$(LIBNAME): $(OBJS)
$(AR) $(ARFLAGS) $(LIBNAME) $(OBJS)
clean:
$(RM) *.o *~ $(NAME)
depend:
$(CC) -MM $(CFLAGS) $(C_source) $(CPP_source) > Makefile.dep
-include Makefile.dep
# DO NOT DELETE