GNU Exterior Ballistics Computer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.7 KiB

LDFLAGS = -lfltk_images -lpng -lz -ljpeg -lfltk -ldl -lm -lXext -lX11 -lhpdf -L./blib/ -lballistics
BFLAGS = -c -O3 -Wall
all: InputWindow.o LicenseWindow.o PlotWindow.o AboutWindow.o RangeWindow.o PBRWindow.o GBCSolution.o GNU_Ballistics.o ./blib/libballistics.a
g++ -Wall -O3 -o GNU_Ballistics InputWindow.o PlotWindow.o LicenseWindow.o AboutWindow.o RangeWindow.o PBRWindow.o GBCSolution.o GNU_Ballistics.o ${LDFLAGS}
rm -f *.o
rm -f *.*~
mv GNU_Ballistics ../
GNU_Ballistics.o: GNU_Ballistics.cpp
g++ ${BFLAGS} GNU_Ballistics.cpp -o GNU_Ballistics.o
PBRWindow.o: PBRWindow.cpp PBRWindow.h
g++ ${BFLAGS} PBRWindow.cpp -o PBRWindow.o
RangeWindow.o: RangeWindow.h GBCSolution.h InputWindow.h InputWindow.cpp
g++ ${BFLAGS} RangeWindow.cpp -o RangeWindow.o
AboutWindow.o: AboutWindow.h AboutWindow.cpp
g++ ${BFLAGS} AboutWindow.cpp -o AboutWindow.o
LicenseWindow.o: LicenseWindow.h LicenseWindow.cpp
g++ ${BFLAGS} LicenseWindow.cpp -o LicenseWindow.o
InputWindow.o: InputWindow.h InputWindow.cpp
g++ ${BFLAGS} InputWindow.cpp -o InputWindow.o
PlotWindow.o: PlotWindow.h PlotWindow.cpp
g++ ${BFLAGS} PlotWindow.cpp -o PlotWindow.o
GBCSolution.o: GBCSolution.h GBCSolution.cpp
g++ ${BFLAGS} GBCSolution.cpp -o GBCSolution.o
./blib/libballistics.a: ./blib/src/ballistics.h ./blib/src/ballistics.c
g++ ${BFLAGS} ./blib/src/ballistics.c -o ./blib/src/ballistics.o
ar rcs ./blib/libballistics.a ./blib/src/ballistics.o
rm -f ./blib/src/ballistics.o
rm -f GBCSolution.o
rm -f PlotWindow.o
rm -f InputWindow.o
rm -f AboutWindow.o
rm -f LicenseWindow.o
rm -f PBRWindow.o
rm -f ballistics.o
rm -f *.o
rm -f *.*~
rm -f GNU_Ballistics
rm -f ./blib/libballistics.a