This is what is found in the smaugfuss makefile.
ifdef CYGWIN
smaug: $(O_FILES)
rm -f smaug.exe
dlltool --export-all --output-def smaug.def $(O_FILES)
dlltool --dllname smaug.exe --output-exp smaug.exp --def smaug.def
$(CC) -o smaug.exe $(O_FILES) smaug.exp $(L_FLAGS)
@echo "Generating dependency file ...";
@$(CC) -MM $(C_FLAGS) $(C_FILES) > dependencies.d
@perl -pi -e 's.^([a-z]).o/$$1.g' dependencies.d
@echo "Done compiling mud.";
chmod g+w smaug.exe
chmod a+x smaug.exe
chmod g+w $(O_FILES)
clean:
@rm -f o/*.o smaug.exe dependencies.d resolver.exe resolver.o *~
else
smaug: $(O_FILES)
rm -f smaug
$(CC) -export-dynamic -o smaug $(O_FILES) $(L_FLAGS)
@echo "Generating dependency file ...";
@$(CC) -MM $(C_FLAGS) $(C_FILES) > dependencies.d
@perl -pi -e 's.^([a-z]).o/$$1.g' dependencies.d
@echo "Done compiling mud.";
chmod g+w smaug
chmod a+x smaug
chmod g+w $(O_FILES)
clean:
@rm -f o/*.o smaug dependencies.d resolver resolver.o *~
endif
This is what is found in the makefile of the one your using (I'll assume)
eldhamud: $(O_FILES)
rm -f eldhamud
$(CC) -export-dynamic -o eldhamud $(O_FILES) $(L_FLAGS)
echo "Done compiling mud.";
chmod g+w eldhamud
chmod a+x eldhamud
chmod g+w $(O_FILES)
clean:
rm -f *.o eldhamud *~
rm -f ObjectFiles/*.o
rm -f Headers/*~
When it is done in cygwin you need to use the dlltool etc.... But if you modify it some you can get it working
Try this
eldhamud: $(O_FILES)
rm -f eldhamud.exe
dlltool --export-all --output-def eldhamud.def $(O_FILES)
dlltool --dllname eldhamud.exe --output-exp eldhamud.exp --def eldhamud.def
$(CC) -o eldhamud.exe $(O_FILES) eldhamud.exp $(L_FLAGS)
@echo "Generating dependency file ...";
@$(CC) -MM $(C_FLAGS) $(C_FILES) > dependencies.d
@perl -pi -e 's.^([a-z]).o/$$1.g' dependencies.d
@echo "Done compiling mud.";
chmod g+w eldhamud.exe
chmod a+x eldhamud.exe
chmod g+w $(O_FILES)
clean:
rm -f ObjectFiles/*.o Headers/*~ eldhamud.exe dependencies.d resolver.exe resolver.o *~
Hope it helps