makefile.mic 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. ##############################################################################
  2. # Microwindows template Makefile
  3. # Copyright (c) 2000 Martin Jolicoeur, Greg Haerr
  4. # Licence: wxWindows Licence
  5. ##############################################################################
  6. TOP=$(MICROWINDOWS)
  7. ifeq "$(MICROWINDOWS)" ""
  8. TOP=/home/julians/local/microwindows/microwindows-0.89pre8/src
  9. endif
  10. CONFIG = $(TOP)/config
  11. WXDIR = ../..
  12. OBJSUFF = o
  13. SRCSUFF = cpp
  14. WXLIB=$(WXDIR)/lib/libwx.a
  15. AROPTIONS = ruv
  16. RANLIB = ranlib
  17. RM = rm -f
  18. ZLIBLIB = $(WXDIR)/lib/libzlib.a
  19. PNGLIB = $(WXDIR)/lib/libpng.a
  20. JPEGLIB = $(WXDIR)/lib/libjpeg.a
  21. TIFFLIB = $(WXDIR)/lib/libtiff.a
  22. include $(CONFIG)
  23. ######################## Additional Flags section ############################
  24. # Directories list for header files
  25. INCLUDEDIRS += -I$(WXDIR)/include
  26. # Defines for preprocessor
  27. DEFINES += -DMWIN -D__WXMSW__ -D__WXMICROWIN__ -D__WXUNIVERSAL__ -D__WIN32__ -D__WIN95__ -DHAVE_BOOL -DMICROWIN_TODO=1 -D__UNIX__ -DHAVE_NANOSLEEP -DMICROWIN_NOCONTROLS -D__WXDEBUG__ -DwxSIZE_T_IS_UINT -DWXWIN_OS_DESCRIPTION="\"MicroWindows\""
  28. # Compilation flags for C files OTHER than include directories
  29. CFLAGS +=
  30. # Preprocessor flags OTHER than defines
  31. CPPFLAGS +=
  32. # Linking flags
  33. #LDFLAGS += -lwx -L$(WXDIR)/lib
  34. LDFLAGS += $(WXLIB)
  35. ############################# targets section ################################
  36. # If you want to create a library with the objects files, define the name here
  37. LIBNAME =
  38. # If we put it below OBJS=, Makefile.rules includes .depend
  39. # and it continually looks for .c files to satisfy .o.cpp
  40. # dependency. What's going on there?
  41. include $(TOP)/Makefile.rules
  42. # List of objects to compile
  43. OBJS = widgets.o button.o combobox.o gauge.o listbox.o notebook.o radiobox.o slider.o spinbtn.o \
  44. static.o textctrl.o
  45. all: widgets
  46. ######################### Makefile.rules section #############################
  47. ######################## Tools targets section ###############################
  48. widgets: $(OBJS) $(MWINLIBS) $(WXLIB) $(TOP)/config
  49. $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(WXLIB) $(MWINLIBS) -lm
  50. #.SUFFIXES: .cpp .cxx .c
  51. #.c.o:
  52. # $(CC) -c $(CFLAGS) $(CFLAGS) -o $@ $*.c
  53. .cxx.o:
  54. $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $*.cxx
  55. .cpp.o:
  56. $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $*.cpp
  57. cleanwx:
  58. -$(RM) *.o
  59. -$(RM) widgets
  60. wx:
  61. @pushd $(WXDIR)/src/msw; make -f makefile.mic all; popd
  62. wxfull:
  63. @pushd $(WXDIR)/src/msw; make -f makefile.mic cleanwx all; popd