makefile.mic 2.3 KB

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