moved sources to src/ dir, clean with explicit defined files
This commit is contained in:
parent
abe261535d
commit
ebc9d6359b
86 changed files with 23 additions and 17 deletions
16
Makefile
16
Makefile
|
@ -5,7 +5,10 @@ OBJS = armc-start.o armc-cstartup.o armc-cstubs.o armc-cppstubs.o \
|
||||||
Drive.o gcr.o prot.o lz.o emmc.o diskio.o options.o Screen.o \
|
Drive.o gcr.o prot.o lz.o emmc.o diskio.o options.o Screen.o \
|
||||||
Timer.o FileBrowser.o DiskCaddy.o ROMs.o InputMappings.o xga_font_data.o
|
Timer.o FileBrowser.o DiskCaddy.o ROMs.o InputMappings.o xga_font_data.o
|
||||||
|
|
||||||
LIBS = uspi/lib/libuspi.a
|
SRCDIR = src
|
||||||
|
OBJS := $(addprefix $(SRCDIR)/, $(OBJS))
|
||||||
|
|
||||||
|
LIBS = uspi/libuspi.a
|
||||||
INCLUDE = -Iuspi/include/
|
INCLUDE = -Iuspi/include/
|
||||||
|
|
||||||
TARGET ?= kernel
|
TARGET ?= kernel
|
||||||
|
@ -20,12 +23,11 @@ $(TARGET): $(OBJS) $(LIBS)
|
||||||
$(Q)$(PREFIX)objdump -d $(TARGET).elf | $(PREFIX)c++filt > $(TARGET).lst
|
$(Q)$(PREFIX)objdump -d $(TARGET).elf | $(PREFIX)c++filt > $(TARGET).lst
|
||||||
$(Q)$(PREFIX)objcopy $(TARGET).elf -O binary $(TARGET).img
|
$(Q)$(PREFIX)objcopy $(TARGET).elf -O binary $(TARGET).img
|
||||||
|
|
||||||
uspi/lib/libuspi.a:
|
uspi/libuspi.a:
|
||||||
$(MAKE) -C uspi/lib
|
$(MAKE) -C uspi
|
||||||
|
|
||||||
clean: clean_libs
|
clean:
|
||||||
|
$(Q)$(RM) $(OBJS) $(TARGET).elf $(TARGET).map $(TARGET).lst $(TARGET).img
|
||||||
clean_libs:
|
$(MAKE) -C uspi clean
|
||||||
$(MAKE) -C uspi/lib clean
|
|
||||||
|
|
||||||
include Makefile.rules
|
include Makefile.rules
|
|
@ -1,4 +1,4 @@
|
||||||
# To show build commands: make
|
# To show build commands: make V=1
|
||||||
ifneq ($(V),1)
|
ifneq ($(V),1)
|
||||||
Q := @
|
Q := @
|
||||||
endif
|
endif
|
||||||
|
@ -45,7 +45,4 @@ CFLAGS += -fno-delete-null-pointer-checks -fdata-sections -ffunction-sections -
|
||||||
|
|
||||||
%.o: %.cpp
|
%.o: %.cpp
|
||||||
@echo " CPP $@"
|
@echo " CPP $@"
|
||||||
$(Q)$(CPP) $(CPPFLAGS) $(INCLUDE) -c -o $@ $<
|
$(Q)$(CPP) $(CPPFLAGS) $(INCLUDE) -c -o $@ $<
|
||||||
|
|
||||||
clean:
|
|
||||||
$(RM) *.o *.a *.elf *.lst *.img *.map
|
|
BIN
font
BIN
font
Binary file not shown.
|
@ -27,12 +27,19 @@ OBJS = uspilibrary.o \
|
||||||
dwhcirootport.o usbmouse.o \
|
dwhcirootport.o usbmouse.o \
|
||||||
dwhciframeschednsplit.o usbgamepad.o synchronize.o usbstring.o usbmidi.o
|
dwhciframeschednsplit.o usbgamepad.o synchronize.o usbstring.o usbmidi.o
|
||||||
|
|
||||||
INCLUDE = -I../include
|
SRCDIR = lib
|
||||||
|
OBJS := $(addprefix $(SRCDIR)/, $(OBJS))
|
||||||
|
|
||||||
all: libuspi.a
|
TARGET = libuspi
|
||||||
|
INCLUDE = -Iinclude
|
||||||
|
|
||||||
libuspi.a: $(OBJS)
|
all: $(TARGET).a
|
||||||
|
|
||||||
|
$(TARGET).a: $(OBJS)
|
||||||
@echo " LINK $@"
|
@echo " LINK $@"
|
||||||
$(Q)$(AR) cr libuspi.a $(OBJS)
|
$(Q)$(AR) cr $(TARGET).a $(OBJS)
|
||||||
|
|
||||||
include ../../Makefile.rules
|
clean:
|
||||||
|
$(Q)$(RM) $(OBJS) $(TARGET).a
|
||||||
|
|
||||||
|
include ../Makefile.rules
|
Loading…
Reference in a new issue