Guest User

Untitled

a guest
Jan 22nd, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. gcc -Wall -g helloworld.c -o helloworld `gtk-config --cflags`
  2. `gtk-config --libs`
  3.  
  4. CFLAGS = -g -Wall -fPIC -Wextra -Werror -lpthread -pthread # for Linux and other gcc systems
  5. OP=$(CFLAGS)
  6. CC=g++ #for Linux
  7.  
  8. # compilation rule for general cases
  9. .o :
  10. $(CC) $(OP) -o $@ $? -lm
  11. .c.o:
  12. $(CC) -c $(OP) $<
  13.  
  14. SWEOBJ = swedate.o swehouse.o swejpl.o swemmoon.o swemplan.o swepcalc.o sweph.o
  15. swepdate.o swephlib.o swecl.o swehel.o
  16.  
  17. astrogtk: astrogtk.o libswe.a
  18. $(CC) $(OP) -I/home/arjan/astroproject -o astrogtk astrogtk.o -L. -lswe -lm -ldl
  19.  
  20. swemini: swemini.o libswe.a
  21. $(CC) $(OP) -o swemini swemini.o -L. -lswe -lm
  22.  
  23. # create an archive and a dynamic link libary fro SwissEph
  24. # a user of this library will inlcude swephexp.h and link with -lswe
  25.  
  26. libswe.a: $(SWEOBJ)
  27. ar r libswe.a $(SWEOBJ)
  28.  
  29. libswe.so: $(SWEOBJ)
  30. $(CC) -shared -o libswe.so $(SWEOBJ)
  31.  
  32. clean:
  33. rm -f *.o astrogtk libswe*
  34.  
  35. ###
  36. swecl.o: swejpl.h sweodef.h swephexp.h swedll.h sweph.h swephlib.h
  37. sweclips.o: sweodef.h swephexp.h swedll.h
  38. swedate.o: swephexp.h sweodef.h swedll.h
  39. swehel.o: swephexp.h sweodef.h swedll.h
  40. swehouse.o: swephexp.h sweodef.h swedll.h swephlib.h swehouse.h
  41. swejpl.o: swephexp.h sweodef.h swedll.h sweph.h swejpl.h
  42. swemini.o: swephexp.h sweodef.h swedll.h
  43. swemmoon.o: swephexp.h sweodef.h swedll.h sweph.h swephlib.h
  44. swemplan.o: swephexp.h sweodef.h swedll.h sweph.h swephlib.h swemptab.h
  45. swepcalc.o: swepcalc.h swephexp.h sweodef.h swedll.h
  46. sweph.o: swejpl.h sweodef.h swephexp.h swedll.h sweph.h swephlib.h
  47. swephlib.o: swephexp.h sweodef.h swedll.h sweph.h swephlib.h
  48. astrogtk.o: swephexp.h sweodef.h swedll.h astromath.h
  49.  
  50. astrogtk.cpp:1:21: fatal error: gtk/gtk.h: No such file or directory
  51. compilation terminated.
  52. <builtin>: recipe for target 'astrogtk.o' failed
  53. make: *** [astrogtk.o] Error 1
Add Comment
Please, Sign In to add comment