Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 7th, 2011  |  syntax: Make  |  size: 0.42 KB  |  views: 40  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. out                     = cbook.cgi
  2. packages        = libconfuse glib-2.0
  3. files           = cbook-main
  4.  
  5. cc                      = cc
  6. make            = make
  7.  
  8. cflags          = -g
  9. cflags          += `pkg-config --cflags $(packages)`
  10. cflags          += `mysql_config --cflags`
  11. libs            = `pkg-config --libs $(packages)`
  12. libs            += `mysql_config --libs`
  13.  
  14. objects         = $(files:%=%.o)
  15.  
  16. %:
  17.         $(cc) $(cflags) -c $@.c
  18. all:
  19.         $(make) $(files)
  20.         $(cc) $(libs) -o $(out) $(objects)
  21. clean:
  22.         rm -f *.o
  23.         rm -f $(out)