1#
2#  XMapEdit, the XPilot Map Editor.  Copyright (C) 1993 by
3#
4#       Aaron Averill           <averila@oes.orst.edu>
5#
6#  This program is free software; you can redistribute it and/or modify
7#  it under the terms of the GNU General Public License as published by
8#  the Free Software Foundation; either version 2 of the License, or
9#  (at your option) any later version.
10#
11#  This program is distributed in the hope that it will be useful,
12#  but WITHOUT ANY WARRANTY; without even the implied warranty of
13#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14#  GNU General Public License for more details.
15#
16#  You should have received a copy of the GNU General Public License
17#  along with this program; if not, write to the Free Software
18#  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19#
20#  Modifications to XMapEdit
21#  1996:
22#       Robert Templeman        <mbcaprt@mphhpd.ph.man.ac.uk>
23#  1997:
24#       William Docter          <wad2@lehigh.edu>
25#
26# $Id: Makefile.dist,v 5.0 2001/04/07 20:01:00 dik Exp $
27#
28
29CC            = gcc
30FLAGS         = -O2 -Wall
31INCLDIR       =
32LIBDIR        =
33LIBS          = -lX11 -lm
34DEFINES       =
35
36TOOLKITOBJS   = T_Toolkit.o T_Form.o T_Popup.o T_Handler.o
37TOOLKITSRCS   = T_Toolkit.c T_Form.c T_Popup.c T_Handler.c
38TOOLKITINCL   = T_Toolkit.h T_Form.h T_Popup.h T_Handler.h T_proto.h
39
40EXE           = xp-mapedit
41OBJS          = main.o expose.o events.o tools.o file.o round.o help.o grow.o forms.o
42SRCS          = main.c expose.c events.c tools.c file.c round.c help.c grow.c forms.c
43INCLUDES      = main.h expose.h events.h tools.h file.h round.h help.h grow.h forms.h \
44		defaults.h map.h proto.h default_colors.h
45
46$(EXE): $(OBJS) $(TOOLKITOBJS)
47	$(CC) $(FLAGS) -o $(EXE) $(OBJS) $(TOOLKITOBJS) $(INCLDIR) $(LIBDIR) $(LIBS) $(DEFINES)
48
49$(OBJS): $(INCLUDES)
50	$(CC) $(FLAGS) $(INCLDIR) $(DEFINES) -c $*.c
51
52$(TOOLKITOBJS): $(TOOLKITINCL)
53	$(CC) $(FLAGS) $(INCLDIR) $(DEFINES) -c $*.c
54
55clean:
56	rm -f $(OBJS) $(TOOLKITOBJS) $(EXE)
57
58