9 # Makefile for Tex2RTF (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)/tex2rtf.$(OBJSUFF) $(OBJDIR)/texutils.$(OBJSUFF) $(OBJDIR)/tex2any.$(OBJSUFF)\
18 $(OBJDIR)/htmlutil.$(OBJSUFF) $(OBJDIR)/rtfutils.$(OBJSUFF) $(OBJDIR)/xlputils.$(OBJSUFF)\
19 $(OBJDIR)/table.$(OBJSUFF) $(OBJDIR)/readshg.$(OBJSUFF)\
20 $(OBJDIR)/tex2rtf_resources.$(OBJSUFF)
22 all: $(OBJDIR) tex2rtf$(GUISUFFIX)$(EXESUFF)
24 INC = $(COMPPATHS) -I$(WXDIR)/include/msw -I$(WXDIR)/include/base -I../../wxhelp/src
25 CPPFLAGS = $(XINCLUDE) $(INC) $(OPTIONS) $(GUI) -DDEBUG='$(DEBUG)' $(DEBUGFLAGS) $(WARN) $(OPT)
30 tex2rtf$(GUISUFFIX)$(EXESUFF): $(OBJECTS) $(WXLIB)
31 $(CC) $(LDFLAGS) -o tex2rtf$(GUISUFFIX)$(EXESUFF) $(OBJECTS) $(LDLIBS)
33 $(OBJDIR)/tex2rtf.$(OBJSUFF): tex2rtf.$(SRCSUFF) tex2rtf.h tex2any.h
34 $(CC) -c $(CPPFLAGS) -o $@ tex2rtf.$(SRCSUFF)
36 $(OBJDIR)/texutils.$(OBJSUFF): texutils.$(SRCSUFF) tex2rtf.h tex2any.h
37 $(CC) -c $(CPPFLAGS) -o $@ texutils.$(SRCSUFF)
39 $(OBJDIR)/tex2any.$(OBJSUFF): tex2any.$(SRCSUFF) tex2any.h
40 $(CC) -c $(CPPFLAGS) -o $@ tex2any.$(SRCSUFF)
42 $(OBJDIR)/htmlutil.$(OBJSUFF): htmlutil.$(SRCSUFF) tex2any.h
43 $(CC) -c $(CPPFLAGS) -o $@ htmlutil.$(SRCSUFF)
45 $(OBJDIR)/rtfutils.$(OBJSUFF): rtfutils.$(SRCSUFF) tex2any.h
46 $(CC) -c $(CPPFLAGS) -o $@ rtfutils.$(SRCSUFF)
48 $(OBJDIR)/xlputils.$(OBJSUFF): xlputils.$(SRCSUFF) tex2any.h
49 $(CC) -c $(CPPFLAGS) -o $@ xlputils.$(SRCSUFF)
51 $(OBJDIR)/table.$(OBJSUFF): table.$(SRCSUFF) tex2any.h
52 $(CC) -c $(CPPFLAGS) -o $@ table.$(SRCSUFF)
54 $(OBJDIR)/readshg.$(OBJSUFF): readshg.$(SRCSUFF) readshg.h
55 $(CC) -c $(CPPFLAGS) -o $@ readshg.$(SRCSUFF)
57 $(OBJDIR)/tex2rtf_resources.o: tex2rtf.rc
58 $(RESCOMP) -i tex2rtf.rc -o $(OBJDIR)/tex2rtf_resources.o $(RESFLAGS)
61 rm -f $(OBJECTS) tex2rtf$(GUISUFFIX).exe core *.rsc *.res