mirror of
https://github.com/wiiu-env/libwupsbackend.git
synced 2024-11-22 01:39:18 +01:00
Create the .ld file
This commit is contained in:
parent
b7eb531c05
commit
d556609e5c
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,3 +6,4 @@ lib/
|
|||||||
CMakeLists.txt
|
CMakeLists.txt
|
||||||
.idea/
|
.idea/
|
||||||
cmake-build-debug/
|
cmake-build-debug/
|
||||||
|
share/libwupsbackend.ld
|
||||||
|
16
Makefile
16
Makefile
@ -99,10 +99,10 @@ export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \
|
|||||||
.PHONY: all dist-bin dist-src dist install clean
|
.PHONY: all dist-bin dist-src dist install clean
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
all: lib/libwupsbackend.a
|
all: lib/libwupsbackend.a share/libwupsbackend.ld
|
||||||
|
|
||||||
dist-bin: all
|
dist-bin: all
|
||||||
@tar --exclude=*~ -cjf libwupsbackend-$(VERSION).tar.bz2 include lib
|
@tar --exclude=*~ -cjf libwupsbackend-$(VERSION).tar.bz2 include lib share
|
||||||
|
|
||||||
dist-src:
|
dist-src:
|
||||||
@tar --exclude=*~ -cjf libwupsbackend-src-$(VERSION).tar.bz2 include source Makefile
|
@tar --exclude=*~ -cjf libwupsbackend-src-$(VERSION).tar.bz2 include source Makefile
|
||||||
@ -116,9 +116,15 @@ install: dist-bin
|
|||||||
lib:
|
lib:
|
||||||
@[ -d $@ ] || mkdir -p $@
|
@[ -d $@ ] || mkdir -p $@
|
||||||
|
|
||||||
|
share:
|
||||||
|
@[ -d $@ ] || mkdir -p $@
|
||||||
|
|
||||||
release:
|
release:
|
||||||
@[ -d $@ ] || mkdir -p $@
|
@[ -d $@ ] || mkdir -p $@
|
||||||
|
|
||||||
|
share/libwupsbackend.ld : lib/libwupsbackend.a | release
|
||||||
|
cp $(CURDIR)/release/*.ld $(CURDIR)/$@
|
||||||
|
|
||||||
lib/libwupsbackend.a :$(SOURCES) $(INCLUDES) | lib release
|
lib/libwupsbackend.a :$(SOURCES) $(INCLUDES) | lib release
|
||||||
@$(MAKE) BUILD=release OUTPUT=$(CURDIR)/$@ \
|
@$(MAKE) BUILD=release OUTPUT=$(CURDIR)/$@ \
|
||||||
BUILD_CFLAGS="-DNDEBUG=1 -O2 -s" \
|
BUILD_CFLAGS="-DNDEBUG=1 -O2 -s" \
|
||||||
@ -143,6 +149,12 @@ $(OUTPUT) : $(OFILES)
|
|||||||
|
|
||||||
$(OFILES_SRC) : $(HFILES)
|
$(OFILES_SRC) : $(HFILES)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o: %.def
|
||||||
|
$(SILENTMSG) $(notdir $<)
|
||||||
|
$(SILENTCMD)rplimportgen $< $*.s $*.ld $(ERROR_FILTER)
|
||||||
|
$(SILENTCMD)$(CC) -x assembler-with-cpp $(ASFLAGS) -c $*.s -o $@ $(ERROR_FILTER)
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
%_bin.h %.bin.o : %.bin
|
%_bin.h %.bin.o : %.bin
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user