Changeset 079f440 in mainline for uspace/lib/Makefile.common


Ignore:
Timestamp:
2010-01-16T20:59:55Z (15 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
94790d01
Parents:
cf240cb
Message:

Also use common make rules for libc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/Makefile.common

    rcf240cb r079f440  
    4848JOB = $(OUTPUT).job
    4949
    50 OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
     50OBJECTS = $(addsuffix .o,$(basename $(SOURCES)))
    5151
     52-include $(USPACE_PREFIX)/../Makefile.config
    5253include $(LIBC_PREFIX)/Makefile.toolchain
    5354
     
    6364    $(LIBS) \
    6465    \
    65     $(OUTPUT)
     66    $(OUTPUT) \
     67    $(EXTRA_OUTPUT)
    6668        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    6769
    6870clean:
    69         rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT)
     71        rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(EXTRA_OUTPUT) $(EXTRA_CLEAN)
    7072        find . -name '*.o' -follow -exec rm \{\} \;
    7173
     
    7779        $(AR) rc $@ $(OBJECTS)
    7880
     81%.o: %.S $(DEPEND)
     82        $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@
     83ifeq ($(PRECHECK),y)
     84        $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__
     85endif
     86
     87%.o: %.s $(DEPEND)
     88        $(AS) $(AFLAGS) $< -o $@
     89ifeq ($(PRECHECK),y)
     90        $(JOBFILE) $(JOB) $< $@ as asm $(AFLAGS)
     91endif
     92
    7993%.o: %.c $(DEPEND)
    8094        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     
    8397endif
    8498
    85 $(DEPEND):
     99$(DEPEND): $(PRE_DEPEND)
    86100        makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(SOURCES) > $@ 2> /dev/null
    87101        -[ -f $(DEPEND_PREV) ] && diff -q $(DEPEND_PREV) $@ && mv -f $(DEPEND_PREV) $@
Note: See TracChangeset for help on using the changeset viewer.