# To build minwin for linux type "make -f linux.mak". By default # the motif version is built. To build for gtk uncomment the MWLIB # and VER definitions # the motif version requires Imlib for loading images MWLIB = minwin_motif VER = Motif XLIBS = -L-L/usr/X11R6/lib -L-lXm -L-lXt -L-lX11 #MWLIB = minwin_gtk #VER = GTK #XLIBS = -L-L/usr/X11R6/lib -L-lgtk-x11-2.0 -L-lX11 # The library and object files will be created in # the source directory. # flags to use building unittest.exe DUNITFLAGS=-g -unittest -I.. -version=$(VER) # flags to use when building the minwin library #DLIBFLAGS=-O -release -I.. -version=$(VER) DLIBFLAGS=-g -I.. -version=$(VER) -version=LOG DMD = dmd LIB = ar targets : $(MWLIB) #unittest : unittest LIBNAME = lib$(MWLIB).a $(MWLIB) : $(LIBNAME) SRC = app.d \ window.d \ paint.d \ font.d \ logging.d \ geometry.d \ x11.d \ motif.d \ motif_aux.d \ gtk.d \ gtk_peers.d \ multidg.d \ component.d \ button.d \ menu.d \ event.d \ icon.d \ dialog.d \ group.d \ image.d \ peer.d \ peerimpl.d \ label.d \ text.d \ combo.d \ listbox.d \ canvas.d \ scroll.d \ layout.d OBJS = app.o \ window.o \ paint.o \ font.o \ logging.o \ geometry.o \ x11.o \ motif.o \ gtk.o \ gtk_peers.o \ multidg.o \ component.o \ button.o \ menu.o \ event.o \ icon.o \ dialog.o \ group.o \ image.o \ peer.o \ peerimpl.o \ label.o \ text.o \ combo.o \ listbox.o \ canvas.o \ scroll.o \ layout.o %.o : %.d $(DMD) -c $(DLIBFLAGS) $< -of$@ $(LIBNAME) : $(OBJS) $(SRC) $(LIB) -r $@ $(OBJS) unittest : $(LIBNAME) $(SRC) $(DMD) unittest.d $(DUNITFLAGS) ./$(LIBNAME) -ofunittest $(XLIBS) clean: -rm *.o -rm $(LIBNAME)