| 
									
										
										
										
											2015-06-14 15:05:07 +00:00
										 |  |  | CC = gcc | 
					
						
							| 
									
										
										
										
											2015-05-27 13:08:28 +00:00
										 |  |  | FC = gfortran | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-03-01 17:07:11 -06:00
										 |  |  | CFLAGS= -I/usr/include -Wall -Wno-missing-braces -Wno-unused-result -O3 -ffast-math | 
					
						
							| 
									
										
										
										
											2015-05-27 13:08:28 +00:00
										 |  |  | LDFLAGS = -L/usr/lib | 
					
						
							| 
									
										
										
										
											2019-03-01 17:07:11 -06:00
										 |  |  | FFLAGS = -O2 -Wall -Wno-conversion | 
					
						
							| 
									
										
										
										
											2019-03-01 14:36:26 -06:00
										 |  |  | LIBS = -lfftw3f -lm -lgfortran | 
					
						
							| 
									
										
										
										
											2015-05-27 13:08:28 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | # Default rules
 | 
					
						
							|  |  |  | %.o: %.c $(DEPS) | 
					
						
							|  |  |  | 	${CC} ${CFLAGS} -c $< | 
					
						
							|  |  |  | %.o: %.f | 
					
						
							|  |  |  | 	${FC} ${FFLAGS} -c $< | 
					
						
							|  |  |  | %.o: %.F | 
					
						
							|  |  |  | 	${FC} ${FFLAGS} -c $< | 
					
						
							| 
									
										
										
										
											2019-03-01 17:07:11 -06:00
										 |  |  | %.o: %.f90  | 
					
						
							| 
									
										
										
										
											2015-05-27 13:08:28 +00:00
										 |  |  | 	${FC} ${FFLAGS} -c $< | 
					
						
							|  |  |  | %.o: %.F90 | 
					
						
							|  |  |  | 	${FC} ${FFLAGS} -c $< | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-03-01 17:48:57 -06:00
										 |  |  | all:    wsprd wsprsim | 
					
						
							| 
									
										
										
										
											2015-05-27 13:08:28 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-07-25 23:48:53 +00:00
										 |  |  | DEPS =  wsprsim_utils.h wsprd_utils.h fano.h jelinek.h nhash.h | 
					
						
							| 
									
										
										
										
											2019-03-01 17:07:11 -06:00
										 |  |  | 
 | 
					
						
							|  |  |  | indexx.o: ../indexx.f90 | 
					
						
							|  |  |  | 	${FC} -o indexx.o ${FFLAGS} -c ../indexx.f90  | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-03-01 14:36:26 -06:00
										 |  |  | OBJS1 = wsprd.o wsprsim_utils.o wsprd_utils.o tab.o fano.o jelinek.o nhash.o indexx.o osdwspr.o | 
					
						
							| 
									
										
										
										
											2019-03-01 17:07:11 -06:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-05-27 13:08:28 +00:00
										 |  |  | wsprd: $(OBJS1) | 
					
						
							|  |  |  | 	$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS) $(LIBS) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-03-01 17:48:57 -06:00
										 |  |  | OBJS2 = wsprsim.o wsprsim_utils.o wsprd_utils.o tab.o fano.o nhash.o  | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | wsprsim: $(OBJS2)  | 
					
						
							|  |  |  | 	$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS) $(LIBS) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-05-27 13:08:28 +00:00
										 |  |  | clean: | 
					
						
							| 
									
										
										
										
											2019-03-01 17:48:57 -06:00
										 |  |  | 	$(RM) *.o wsprd wsprsim |