Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/pci/Makefile

    rcb0ea39 rfcd7053  
    3535include $(LIBC_PREFIX)/Makefile.toolchain
    3636
    37 CFLAGS += -I../libipc/include
    3837
    39 LIBS = $(LIBC_PREFIX)/libc.a
     38LIBS = libpci/libpci.a $(LIBC_PREFIX)/libc.a
    4039
    4140## Sources
     
    4443OUTPUT = pci
    4544SOURCES = \
    46         main.c \
    47         pci.c \
    48         intel_piix3.c \
    49         isa.c \
    50         serial.c
    51 
    52 ifeq ($(PROCESSOR), us)
    53         SOURCES += psycho.c
    54 endif
    55 
    56 ifeq ($(UARCH), ia32)
    57         SOURCES += intel_method1.c
    58 endif
    59 
    60 CFLAGS += -D$(UARCH)
     45        pci.c
    6146
    6247OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
     
    6449.PHONY: all clean depend disasm
    6550
    66 all: $(OUTPUT) $(OUTPUT).disasm
     51all: $(OUTPUT) disasm
    6752
    6853-include Makefile.depend
     
    7055clean:
    7156        -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend $(OBJECTS)
     57        $(MAKE) -C libpci clean
    7258
    7359depend:
     
    7561
    7662$(OUTPUT): $(OBJECTS) $(LIBS)
     63        $(MAKE) -C libpci
    7764        $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
    7865
    79 disasm: $(OUTPUT).disasm
    80 
    81 $(OUTPUT).disasm: $(OUTPUT)
    82         $(OBJDUMP) -d $< >$@
     66disasm:
     67        $(OBJDUMP) -d $(OUTPUT) >$(OUTPUT).disasm
    8368
    8469%.o: %.S
     
    9075%.o: %.c
    9176        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     77
     78libpci/libpci.a:
     79        $(MAKE) -C libpci
Note: See TracChangeset for help on using the changeset viewer.