]>
Commit | Line | Data |
---|---|---|
457814b5 JS |
1 | # |
2 | # File: makefile.g95 | |
3 | # Author: Julian Smart | |
4 | # Created: 1996 | |
5 | # Updated: | |
6 | # | |
7 | # "%W% %G%" | |
8 | # | |
9 | # Makefile for Dialog Editor (GNU-WIN32) | |
10 | ||
11 | WXDIR = ../../.. | |
12 | ||
13 | # All common UNIX compiler flags and options are now in | |
14 | # this central makefile. | |
15 | include $(WXDIR)/src/makeg95.env | |
16 | ||
17 | OBJECTS = $(OBJDIR)/dialoged.$(OBJSUFF) $(OBJDIR)/editrpal.$(OBJSUFF) $(OBJDIR)/reseditr.$(OBJSUFF)\ | |
18 | $(OBJDIR)/dlghndlr.$(OBJSUFF) $(OBJDIR)/reswrite.$(OBJSUFF) $(OBJDIR)/winprop.$(OBJSUFF)\ | |
884360bc | 19 | $(OBJDIR)/edlist.$(OBJSUFF) $(OBJDIR)/edtree.$(OBJSUFF)\ |
457814b5 JS |
20 | $(OBJDIR)/dialoged_resources.$(OBJSUFF) |
21 | ||
22 | EXTRAINC = -I../../wxprop/src | |
23 | ||
24 | LDFLAGS = -Wl,--subsystem,windows -mwindows -L$(WXDIR)/lib -L../../wxprop/lib | |
25 | LDLIBS=-lwxprop $(LIBS) | |
26 | ||
27 | CPPFLAGS = $(XINCLUDE) $(INC) $(OPTIONS) $(GUI) $(DEBUGFLAGS) -DDEBUG='$(DEBUG)' $(WARN) $(OPT) $(EXTRAINC) | |
28 | ||
29 | all: $(OBJDIR) wxprop dialoged$(GUISUFFIX)$(EXESUFF) | |
30 | ||
31 | wxprop: | |
32 | cd ../../wxprop/src; $(MAKE) -f makefile.g95 | |
33 | ||
34 | $(OBJDIR): | |
35 | mkdir $(OBJDIR) | |
36 | ||
37 | dialoged$(GUISUFFIX)$(EXESUFF): $(OBJECTS) $(WXLIB) | |
38 | $(CC) $(LDFLAGS) -o dialoged$(GUISUFFIX)$(EXESUFF) $(OBJECTS) $(XVIEW_LINK) $(LDLIBS) | |
39 | ||
40 | $(OBJDIR)/dialoged.$(OBJSUFF): dialoged.$(SRCSUFF) | |
41 | $(CC) -c $(CPPFLAGS) -o $@ dialoged.$(SRCSUFF) | |
42 | ||
43 | $(OBJDIR)/editrpal.$(OBJSUFF): winprop.h reseditr.h editrpal.h editrpal.$(SRCSUFF) | |
44 | $(CC) -c $(CPPFLAGS) -o $@ editrpal.$(SRCSUFF) | |
45 | ||
46 | $(OBJDIR)/winprop.$(OBJSUFF): winprop.h reseditr.h editrpal.h winprop.$(SRCSUFF) | |
47 | $(CC) -c $(CPPFLAGS) -o $@ winprop.$(SRCSUFF) | |
48 | ||
49 | $(OBJDIR)/reswrite.$(OBJSUFF): winprop.h reseditr.h editrpal.h reswrite.$(SRCSUFF) | |
50 | $(CC) -c $(CPPFLAGS) -o $@ reswrite.$(SRCSUFF) | |
51 | ||
52 | $(OBJDIR)/reseditr.$(OBJSUFF): winprop.h reseditr.h editrpal.h reseditr.$(SRCSUFF) | |
53 | $(CC) -c $(CPPFLAGS) -o $@ reseditr.$(SRCSUFF) | |
54 | ||
55 | $(OBJDIR)/dlghndlr.$(OBJSUFF): winprop.h reseditr.h editrpal.h dlghndlr.$(SRCSUFF) | |
56 | $(CC) -c $(CPPFLAGS) -o $@ dlghndlr.$(SRCSUFF) | |
57 | ||
884360bc JS |
58 | $(OBJDIR)/edlist.$(OBJSUFF): winprop.h edlist.h edlist.$(SRCSUFF) |
59 | $(CC) -c $(CPPFLAGS) -o $@ edlist.$(SRCSUFF) | |
60 | ||
61 | $(OBJDIR)/edtree.$(OBJSUFF): winprop.h edtree.h edtree.$(SRCSUFF) | |
62 | $(CC) -c $(CPPFLAGS) -o $@ edtree.$(SRCSUFF) | |
63 | ||
457814b5 JS |
64 | $(OBJDIR)/dialoged_resources.o: dialoged.rc |
65 | $(RESCOMP) -i dialoged.rc -o $(OBJDIR)/dialoged_resources.o $(RESFLAGS) | |
66 | ||
67 | clean: | |
68 | rm -f $(OBJECTS) dialoged$(GUISUFFIX).exe core *.rsc *.res |