Changeset 663b26ec in mainline


Ignore:
Timestamp:
2018-01-31T17:36:04Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Parents:
e9dba436
Message:

Make the export directory movable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/Makefile

    re9dba436 r663b26ec  
    9898
    9999EXPORT_CPPFLAGS = \
    100         -specs $(EXPORT_DIR)/lib/gcc.specs \
    101         -isystem $(EXPORT_DIR)/include
     100        -specs $$(HELENOS_EXPORT_ROOT)/lib/gcc.specs \
     101        -isystem $$(HELENOS_EXPORT_ROOT)/include
    102102
    103103EXPORT_LDFLAGS = \
    104         -L$(EXPORT_DIR)/lib \
     104        -L$$(HELENOS_EXPORT_ROOT)/lib \
    105105        --whole-archive -lc -lmath --no-whole-archive \
    106106        -T link.ld
     
    131131        find ../c/include -type f -and -not -name '*.h' -delete
    132132
    133 export: $(EXPORT_DIR)/config
     133export: $(EXPORT_DIR)/config.mk $(EXPORT_DIR)/config.rc
    134134
    135 $(EXPORT_DIR)/config: export-libs export-includes
     135$(EXPORT_DIR)/config.mk: export-libs export-includes
    136136        echo '# Generated file, do not modify.' >> $@.new
     137        echo '# Do not forget to set HELENOS_EXPORT_ROOT.' >> $@.new
    137138        echo 'HELENOS_CROSS_PATH="$(shell dirname $(CC))"' >> $@.new
    138139        echo 'HELENOS_TARGET="$(TARGET)"' >> $@.new
     
    141142        echo 'HELENOS_LDFLAGS="$(EXPORT_LDFLAGS)"' >> $@.new
    142143        mv $@.new $@
     144
     145$(EXPORT_DIR)/config.rc: $(EXPORT_DIR)/config.mk
     146        sed 's:$$(HELENOS_EXPORT_ROOT):$$HELENOS_EXPORT_ROOT:g' < $< >$@
    143147
    144148export-libs: $(EXPORT_FILES) export-includes
Note: See TracChangeset for help on using the changeset viewer.