Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libfs/Makefile

    r8786aa5 rfcd7053  
    2828#
    2929
    30 include Makefile.common
     30## Common compiler flags
     31#
    3132
    32 .PHONY: all clean
     33LIBC_PREFIX = ../libc
    3334
    34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBC_PREFIX)/libc.a
    35         -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    36         $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
     35## Setup toolchain
     36#
     37
     38include $(LIBC_PREFIX)/Makefile.toolchain
     39
     40CFLAGS += -Iinclude
     41
     42## Sources
     43#
     44
     45SOURCES = \
     46        libfs.c
     47
     48OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
     49
     50.PHONY: all clean depend
     51
     52all: libfs.a
     53
     54-include Makefile.depend
    3755
    3856clean:
    39         rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(LIBFS)
     57        -rm -f libfs.a Makefile.depend
    4058        find . -name '*.o' -follow -exec rm \{\} \;
     59
     60depend:
     61        -makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(SOURCES) > Makefile.depend 2> /dev/null
     62
     63libfs.a: depend $(OBJECTS)
     64        $(AR) rc libfs.a $(OBJECTS)
     65
     66%.o: %.c
     67        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
Note: See TracChangeset for help on using the changeset viewer.