mirror of
https://github.com/wiiu-env/libmappedmemory.git
synced 2024-11-22 01:39:20 +01:00
Create the .ld file
This commit is contained in:
parent
761cbaba2e
commit
640e8935c1
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,3 +6,4 @@ lib/
|
|||||||
CMakeLists.txt
|
CMakeLists.txt
|
||||||
.idea/
|
.idea/
|
||||||
cmake-build-debug/
|
cmake-build-debug/
|
||||||
|
share/libmappedmemory.ld
|
||||||
|
12
Makefile
12
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/libmappedmemory.a
|
all: lib/libmappedmemory.a share/libmappedmemory.ld
|
||||||
|
|
||||||
dist-bin: all
|
dist-bin: all
|
||||||
@tar --exclude=*~ -cjf libmappedmemory-$(VERSION).tar.bz2 include lib
|
@tar --exclude=*~ -cjf libmappedmemory-$(VERSION).tar.bz2 include lib share
|
||||||
|
|
||||||
dist-src:
|
dist-src:
|
||||||
@tar --exclude=*~ -cjf libmappedmemory-src-$(VERSION).tar.bz2 include source Makefile
|
@tar --exclude=*~ -cjf libmappedmemory-src-$(VERSION).tar.bz2 include source Makefile
|
||||||
@ -115,9 +115,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/libmappedmemory.ld :$(SOURCES) $(INCLUDES) | share release
|
||||||
|
mv $(CURDIR)/release/*.ld $(CURDIR)/$@
|
||||||
|
|
||||||
lib/libmappedmemory.a :$(SOURCES) $(INCLUDES) | lib release
|
lib/libmappedmemory.a :$(SOURCES) $(INCLUDES) | lib release
|
||||||
@$(MAKE) BUILD=release OUTPUT=$(CURDIR)/$@ \
|
@$(MAKE) BUILD=release OUTPUT=$(CURDIR)/$@ \
|
||||||
@ -146,7 +152,7 @@ $(OFILES_SRC) : $(HFILES)
|
|||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
%.o: %.def
|
%.o: %.def
|
||||||
$(SILENTMSG) $(notdir $<)
|
$(SILENTMSG) $(notdir $<)
|
||||||
$(SILENTCMD)rplimportgen $< $*.s --forceSingleSection $(ERROR_FILTER)
|
$(SILENTCMD)rplimportgen $< $*.s $*.ld $(ERROR_FILTER)
|
||||||
$(SILENTCMD)$(CC) -x assembler-with-cpp $(ASFLAGS) -c $*.s -o $@ $(ERROR_FILTER)
|
$(SILENTCMD)$(CC) -x assembler-with-cpp $(ASFLAGS) -c $*.s -o $@ $(ERROR_FILTER)
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user