update makefile to be able to define a target platform prefix
This commit is contained in:
		
							parent
							
								
									e28c803e87
								
							
						
					
					
						commit
						12caebdc75
					
				
							
								
								
									
										12
									
								
								makefile
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								makefile
									
									
									
									
									
								
							@ -7,6 +7,16 @@ VERSION=0.42.0
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
CFLAGS  +=  -I./ -Wall -W -Wshadow -Wsign-compare
 | 
					CFLAGS  +=  -I./ -Wall -W -Wshadow -Wsign-compare
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Compiler and Linker Names
 | 
				
			||||||
 | 
					ifndef PREFIX
 | 
				
			||||||
 | 
					  PREFIX=
 | 
				
			||||||
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					CC=$(PREFIX)gcc
 | 
				
			||||||
 | 
					LD=$(PREFIX)ld
 | 
				
			||||||
 | 
					AR=$(PREFIX)ar
 | 
				
			||||||
 | 
					RANLIB=$(PREFIX)ranlib
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ifndef MAKE
 | 
					ifndef MAKE
 | 
				
			||||||
   MAKE=make
 | 
					   MAKE=make
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
@ -87,7 +97,7 @@ bn_mp_to_signed_bin_n.o bn_mp_to_unsigned_bin_n.o
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
$(LIBNAME):  $(OBJECTS)
 | 
					$(LIBNAME):  $(OBJECTS)
 | 
				
			||||||
	$(AR) $(ARFLAGS) $@ $(OBJECTS)
 | 
						$(AR) $(ARFLAGS) $@ $(OBJECTS)
 | 
				
			||||||
	ranlib $@
 | 
						$(RANLIB) $@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#make a profiled library (takes a while!!!)
 | 
					#make a profiled library (takes a while!!!)
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user