Changeset 23cdc921 in mainline for kernel/Makefile


Ignore:
Timestamp:
2008-06-20T17:20:19Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
46c1234
Parents:
abe6163
Message:

Introduce the notion of FPU_NO_CFLAGS and separate building of test/fpu
objects and building the rest of kernel objects. Now, amd64 and ia32 can
enable things such as SSE selectively for the test/fpu/*.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/Makefile

    rabe6163 r23cdc921  
    394394        $(AS) $(AFLAGS) $< -o $@
    395395
     396#
     397# The FPU tests are the only objects for which we allow the compiler to generate
     398# FPU instructions.
     399#
     400test/fpu/%.o: test/fpu/%.c
     401        $(CC) $(DEFS) $(CFLAGS) $(EXTRA_FLAGS) -c $< -o $@
     402
     403#
     404# Ordinary objects.
     405#
    396406%.o: %.c
    397         $(CC) $(DEFS) $(CFLAGS) $(EXTRA_FLAGS) -c $< -o $@
     407        $(CC) $(DEFS) $(CFLAGS) $(EXTRA_FLAGS) $(FPU_NO_CFLAGS) -c $< -o $@
Note: See TracChangeset for help on using the changeset viewer.