# Generated automatically from Makefile.in by configure. # Makefile for Win32 (95/98/NT) interface to Xconq. # Copyright (C) 1998-2000 Stanley T. Shebs. # Xconq is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. prefix = /usr/local exec_prefix = $(prefix) bindir = $(exec_prefix)/bin libdir = $(exec_prefix)/lib datadir = $(prefix)/share/xconq mandir = $(prefix)/man man6dir = $(mandir)/man6 infodir = $(prefix)/info docdir = $(datadir)/doc srcdir = . krnsrcdir = $(srcdir)/../kernel GAMEUID = games GAMEGRP = bin GAMEPERM = 04755 DIRPERM = 0755 FILEPERM = 0644 SHELL = /bin/sh INSTALL = install -c INSTALL_PROGRAM = $(INSTALL) INSTALL_DATA = $(INSTALL) CC = gcc CFLAGS = -g LDFLAGS = #TCLTK_LIB = -ltk -ltcl -lm #TCLTK_LIB = ../tcl/win/libtcl80.a ../tk/win/libtk80.a -lm TCLTK_LIB = -L/usr/local/lib -ltcl84g -ltk84g -lm WITH_LIBS = KERNEL_LIB = ../kernel/libconq.a LOW_LIB = ../kernel/libconqlow.a TKUI_LIB = ../tcltk/libtkui.a TKIMF_LIB = ../tcltk/libtkimf.a TKIAPP_LIB = ../tcltk/libtkiapp.a # Host and target-dependent makefile fragments come in here. #### # End of host and target-dependent makefile fragments. GAME_H = $(krnsrcdir)/game.h \ $(krnsrcdir)/gvar.def \ $(krnsrcdir)/utype.def \ $(krnsrcdir)/mtype.def \ $(krnsrcdir)/ttype.def \ $(krnsrcdir)/table.def UNIT_H = $(krnsrcdir)/unit.h \ $(krnsrcdir)/action.def \ $(krnsrcdir)/plan.def \ $(krnsrcdir)/task.def ALL_H = $(krnsrcdir)/conq.h \ $(krnsrcdir)/config.h \ $(krnsrcdir)/misc.h \ $(krnsrcdir)/dir.h \ $(krnsrcdir)/lisp.h \ $(krnsrcdir)/module.h \ $(GAME_H) \ $(krnsrcdir)/player.h \ $(krnsrcdir)/side.h \ $(UNIT_H) \ $(krnsrcdir)/goal.def \ $(krnsrcdir)/world.h \ $(krnsrcdir)/score.h \ $(krnsrcdir)/history.h \ $(krnsrcdir)/ai.h # Interface-specific object files. HFLAGS = WIN_CFLAGS = -mwindows ALL_CFLAGS = $(CFLAGS) $(HFLAGS) $(REQD_CFLAGS) $(WIN_CFLAGS) -I$(srcdir) -I$(srcdir)/.. -I$(krnsrcdir) -I/usr/share/include .c.o: $(CC) -c $(ALL_CFLAGS) $< # Do it all. all: xconq # The game itself. vpath %.c ../tcltk xconq: tkwin32.o $(TKUI_LIB) $(TKIMF_LIB) $(KERNEL_LIB) $(LOW_LIB) rm -f xconq $(CC) -o xconq $(ALL_CFLAGS) $(LDFLAGS) tkwin32.o $(TKUI_LIB) $(TKIMF_LIB) $(KERNEL_LIB) $(LOW_LIB) $(WITH_LIBS) $(TCLTK_LIB) $(NET_EXTRA_LIBS) $(KERNEL_LIB): (cd ../kernel; make libconq.a) $(LOW_LIB): (cd ../kernel; make libconqlow.a) wimfapp: wimfapp.o $(TKIAPP_LIB) $(TKIMF_LIB) $(LOW_LIB) $(CC) -o wimfapp $(ALL_CFLAGS) $(LDFLAGS) wimfapp.o $(TKIAPP_LIB) $(TKIMF_LIB) $(LOW_LIB) $(WITH_LIBS) $(TCLTK_LIB) $(NET_EXTRA_LIBS) # Installation. install: all install-only install-only: srcroot=`cd $(srcroot); pwd`; export srcroot; \ $(INSTALL_PROGRAM) xconq $(bindir); \ chown $(GAMEUID) $(bindir)/xconq; \ chgrp $(GAMEGRP) $(bindir)/xconq; \ chmod $(GAMEPERM) $(bindir)/xconq; \ $(INSTALL_DATA) xconq.6 $(man6dir) # Cleanliness support. clean: rm -f *.o lint.out core rm -f xconq xconq.6 *.conq *.xconq distclean: clean rm -f Makefile config.status extraclean: distclean rm -f *~* .*~* realclean: distclean Makefile: Makefile.in $(host_makefile_frag) $(target_makefile_frag) cd .. \ && CONFIG_FILES=win/$@ CONFIG_HEADERS= $(SHELL) ./config.status # Dependencies. wconq.o: $(ALL_H)