This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
deb-goldedplus/GNUmakef.prg
2000-02-25 10:15:17 +00:00

24 lines
560 B
Plaintext

# -*- makefile -*-
.PHONY: $(TARGET) $(GLIBS)
$(TARGET): $(TOP)/$(BIN)/$(SHORTTARGET)$(PLATFORM)$(EXEEXT)
ifeq ($(PLATFORM),emx)
LIBS=$(addprefix -llib,$(GLIBS))
else
LIBS=$(addprefix -l,$(GLIBS))
endif
LIBS+=$(STDLIBS)
FGLIBS=$(addprefix $(FLIBPATH)/lib, $(addsuffix .a, $(GLIBS)))
$(TOP)/$(BIN)/$(SHORTTARGET)$(PLATFORM)$(EXEEXT): $(OBJS) $(FGLIBS) $(ADDS)
@echo -n Linking $(TARGET)...
@$(CXX) $(LNKFLAGS) -o $@ $(FOBJPATH)/*$(OBJEXT) $(ADDS) $(LIBS) -L$(FLIBPATH)
@echo done
$(FGLIBS): $(GLIBS)
$(GLIBS):
@cd $(TOP)/goldlib/$@; $(MAKE); cd `pwd`