Changeset cb0ea39 in mainline for uspace/srv/pci/Makefile


Ignore:
Timestamp:
2009-08-09T13:56:50Z (15 years ago)
Author:
Lenka Trochtova <trochtova.lenka@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
24f27bb
Parents:
24edc18
Message:

dd: initial import of the original svn branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/pci/Makefile

    r24edc18 rcb0ea39  
    3535include $(LIBC_PREFIX)/Makefile.toolchain
    3636
     37CFLAGS += -I../libipc/include
    3738
    38 LIBS = libpci/libpci.a $(LIBC_PREFIX)/libc.a
     39LIBS = $(LIBC_PREFIX)/libc.a
    3940
    4041## Sources
     
    4344OUTPUT = pci
    4445SOURCES = \
    45         pci.c
     46        main.c \
     47        pci.c \
     48        intel_piix3.c \
     49        isa.c \
     50        serial.c
     51
     52ifeq ($(PROCESSOR), us)
     53        SOURCES += psycho.c
     54endif
     55
     56ifeq ($(UARCH), ia32)
     57        SOURCES += intel_method1.c
     58endif
     59
     60CFLAGS += -D$(UARCH)
    4661
    4762OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
     
    4964.PHONY: all clean depend disasm
    5065
    51 all: $(OUTPUT) disasm
     66all: $(OUTPUT) $(OUTPUT).disasm
    5267
    5368-include Makefile.depend
     
    5570clean:
    5671        -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend $(OBJECTS)
    57         $(MAKE) -C libpci clean
    5872
    5973depend:
     
    6175
    6276$(OUTPUT): $(OBJECTS) $(LIBS)
    63         $(MAKE) -C libpci
    6477        $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
    6578
    66 disasm:
    67         $(OBJDUMP) -d $(OUTPUT) >$(OUTPUT).disasm
     79disasm: $(OUTPUT).disasm
     80
     81$(OUTPUT).disasm: $(OUTPUT)
     82        $(OBJDUMP) -d $< >$@
    6883
    6984%.o: %.S
     
    7590%.o: %.c
    7691        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
    77 
    78 libpci/libpci.a:
    79         $(MAKE) -C libpci
Note: See TracChangeset for help on using the changeset viewer.