Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gcc -Wall -g helloworld.c -o helloworld `gtk-config --cflags`
- `gtk-config --libs`
- CFLAGS = -g -Wall -fPIC -Wextra -Werror -lpthread -pthread # for Linux and other gcc systems
- OP=$(CFLAGS)
- CC=g++ #for Linux
- # compilation rule for general cases
- .o :
- $(CC) $(OP) -o $@ $? -lm
- .c.o:
- $(CC) -c $(OP) $<
- SWEOBJ = swedate.o swehouse.o swejpl.o swemmoon.o swemplan.o swepcalc.o sweph.o
- swepdate.o swephlib.o swecl.o swehel.o
- astrogtk: astrogtk.o libswe.a
- $(CC) $(OP) -I/home/arjan/astroproject -o astrogtk astrogtk.o -L. -lswe -lm -ldl
- swemini: swemini.o libswe.a
- $(CC) $(OP) -o swemini swemini.o -L. -lswe -lm
- # create an archive and a dynamic link libary fro SwissEph
- # a user of this library will inlcude swephexp.h and link with -lswe
- libswe.a: $(SWEOBJ)
- ar r libswe.a $(SWEOBJ)
- libswe.so: $(SWEOBJ)
- $(CC) -shared -o libswe.so $(SWEOBJ)
- clean:
- rm -f *.o astrogtk libswe*
- ###
- swecl.o: swejpl.h sweodef.h swephexp.h swedll.h sweph.h swephlib.h
- sweclips.o: sweodef.h swephexp.h swedll.h
- swedate.o: swephexp.h sweodef.h swedll.h
- swehel.o: swephexp.h sweodef.h swedll.h
- swehouse.o: swephexp.h sweodef.h swedll.h swephlib.h swehouse.h
- swejpl.o: swephexp.h sweodef.h swedll.h sweph.h swejpl.h
- swemini.o: swephexp.h sweodef.h swedll.h
- swemmoon.o: swephexp.h sweodef.h swedll.h sweph.h swephlib.h
- swemplan.o: swephexp.h sweodef.h swedll.h sweph.h swephlib.h swemptab.h
- swepcalc.o: swepcalc.h swephexp.h sweodef.h swedll.h
- sweph.o: swejpl.h sweodef.h swephexp.h swedll.h sweph.h swephlib.h
- swephlib.o: swephexp.h sweodef.h swedll.h sweph.h swephlib.h
- astrogtk.o: swephexp.h sweodef.h swedll.h astromath.h
- astrogtk.cpp:1:21: fatal error: gtk/gtk.h: No such file or directory
- compilation terminated.
- <builtin>: recipe for target 'astrogtk.o' failed
- make: *** [astrogtk.o] Error 1
Add Comment
Please, Sign In to add comment