9 # Makefile for Dialog Editor (GNU-WIN32)
13 # All common UNIX compiler flags and options are now in
14 # this central makefile.
15 include $(WXDIR)/src/makeg95.env
17 OBJECTS = $(OBJDIR)/dialoged.$(OBJSUFF) $(OBJDIR)/editrpal.$(OBJSUFF) $(OBJDIR)/reseditr.$(OBJSUFF)\
18 $(OBJDIR)/dlghndlr.$(OBJSUFF) $(OBJDIR)/reswrite.$(OBJSUFF) $(OBJDIR)/winprop.$(OBJSUFF)\
19 $(OBJDIR)/dialoged_resources.$(OBJSUFF)
21 EXTRAINC = -I../../wxprop/src
23 LDFLAGS = -Wl,--subsystem,windows -mwindows -L$(WXDIR)/lib -L../../wxprop/lib
24 LDLIBS=-lwxprop $(LIBS)
26 CPPFLAGS = $(XINCLUDE) $(INC) $(OPTIONS) $(GUI) $(DEBUGFLAGS) -DDEBUG='$(DEBUG)' $(WARN) $(OPT) $(EXTRAINC)
28 all: $(OBJDIR) wxprop dialoged$(GUISUFFIX)$(EXESUFF)
31 cd ../../wxprop/src; $(MAKE) -f makefile.g95
36 dialoged$(GUISUFFIX)$(EXESUFF): $(OBJECTS) $(WXLIB)
37 $(CC) $(LDFLAGS) -o dialoged$(GUISUFFIX)$(EXESUFF) $(OBJECTS) $(XVIEW_LINK) $(LDLIBS)
39 $(OBJDIR)/dialoged.$(OBJSUFF): dialoged.$(SRCSUFF)
40 $(CC) -c $(CPPFLAGS) -o $@ dialoged.$(SRCSUFF)
42 $(OBJDIR)/editrpal.$(OBJSUFF): winprop.h reseditr.h editrpal.h editrpal.$(SRCSUFF)
43 $(CC) -c $(CPPFLAGS) -o $@ editrpal.$(SRCSUFF)
45 $(OBJDIR)/winprop.$(OBJSUFF): winprop.h reseditr.h editrpal.h winprop.$(SRCSUFF)
46 $(CC) -c $(CPPFLAGS) -o $@ winprop.$(SRCSUFF)
48 $(OBJDIR)/reswrite.$(OBJSUFF): winprop.h reseditr.h editrpal.h reswrite.$(SRCSUFF)
49 $(CC) -c $(CPPFLAGS) -o $@ reswrite.$(SRCSUFF)
51 $(OBJDIR)/reseditr.$(OBJSUFF): winprop.h reseditr.h editrpal.h reseditr.$(SRCSUFF)
52 $(CC) -c $(CPPFLAGS) -o $@ reseditr.$(SRCSUFF)
54 $(OBJDIR)/dlghndlr.$(OBJSUFF): winprop.h reseditr.h editrpal.h dlghndlr.$(SRCSUFF)
55 $(CC) -c $(CPPFLAGS) -o $@ dlghndlr.$(SRCSUFF)
57 $(OBJDIR)/dialoged_resources.o: dialoged.rc
58 $(RESCOMP) -i dialoged.rc -o $(OBJDIR)/dialoged_resources.o $(RESFLAGS)
61 rm -f $(OBJECTS) dialoged$(GUISUFFIX).exe core *.rsc *.res