scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

Makefile.libc (296B)


      1 .POSIX:
      2 PROJECTDIR =../..
      3 include $(PROJECTDIR)/scripts/rules.mk
      4 include rules.mk
      5 include objlst.mk
      6 
      7 LIBC   = $(LIBCDIR)/libc.a
      8 CRT    = $(LIBCDIR)/crt.o
      9 TARGET = $(LIBC) $(CRT)
     10 
     11 all: $(TARGET)
     12 
     13 $(LIBC): $(OBJS)
     14 	mklib -o $@ $?
     15 
     16 $(CRT): arch/$(ARCH)/$(SYS)/crt.o
     17 	cp arch/$(ARCH)/$(SYS)/crt.o $@