diff --git a/GNUmakefile.in b/GNUmakefile.in index 3f622c3a..53485185 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -52,6 +52,10 @@ termlibs := @termlibs@ CCDEPMODE := @CCDEPMODE@ @am__fastdepCC_TRUE@how_to_dep := fast @am__fastdepCC_FALSE@@AMDEP_TRUE@how_to_dep := depcomp +EXEEXT := @EXEEXT@ +ifneq (@OBJEXT@,o) +$(error This makefile can't cope with your compiler's object file names) +endif AWK := @AWK@ INSTALL := @INSTALL@ diff --git a/Make.mk b/Make.mk index 989c5efa..cbd67632 100644 --- a/Make.mk +++ b/Make.mk @@ -66,9 +66,9 @@ obj := $(csrc:.c=.o) $(filter %.o, $(ac:.c=.o)) # TODO AIX needs lwpInit.o lwpRestore.o lwpSave.o unless UCONTEXT deps := $(obj:.o=.d) libs := $(addprefix lib/, libcommon.a libgen.a libglobal.a) -util := $(addprefix src/util/, fairland files pconfig) -client := src/client/empire -server := src/server/emp_server +util := $(addprefix src/util/, $(addsuffix $(EXEEXT), fairland files pconfig)) +client := src/client/empire$(EXEEXT) +server := src/server/emp_server$(EXEEXT) progs := $(util) $(client) $(server) tsubj := $(addprefix info/, $(addsuffix .t, $(subjects))) ttop := info/TOP.t