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.
		
		
		
		
		
			
		
			
				
					
					
						
							44 lines
						
					
					
						
							917 B
						
					
					
				
			
		
		
	
	
							44 lines
						
					
					
						
							917 B
						
					
					
				#
 | 
						|
# Makefile for the FREAX-kernel character device drivers.
 | 
						|
#
 | 
						|
# Note! Dependencies are done automagically by 'make dep', which also
 | 
						|
# removes any old dependencies. DON'T put your own dependencies here
 | 
						|
# unless it's something special (ie not a .c file).
 | 
						|
#
 | 
						|
 | 
						|
AR	=ar
 | 
						|
AS	=as
 | 
						|
LD	=ld
 | 
						|
LDFLAGS	=-s -x
 | 
						|
CC	=gcc -march=i386
 | 
						|
CFLAGS	=-w -g -fstrength-reduce -fomit-frame-pointer -mcld \
 | 
						|
	-nostdinc -fno-stack-protector -I../../include
 | 
						|
CPP	=gcc -E -nostdinc -I../../include
 | 
						|
 | 
						|
.c.s:
 | 
						|
	$(CC) $(CFLAGS) \
 | 
						|
	-S -o $*.s $<
 | 
						|
.s.o:
 | 
						|
	$(AS) -o $*.o $<
 | 
						|
.c.o:
 | 
						|
	$(CC) $(CFLAGS) \
 | 
						|
	-c -o $*.o $<
 | 
						|
 | 
						|
OBJS  = math_emulate.o
 | 
						|
 | 
						|
math.a: $(OBJS)
 | 
						|
	$(AR) rcs math.a $(OBJS)
 | 
						|
	sync
 | 
						|
 | 
						|
clean:
 | 
						|
	rm -f core *.o *.a tmp_make
 | 
						|
	for i in *.c;do rm -f `basename $$i .c`.s;done
 | 
						|
 | 
						|
dep:
 | 
						|
	sed '/\#\#\# Dependencies/q' < Makefile > tmp_make
 | 
						|
	(for i in *.c;do echo -n `echo $$i | sed 's,\.c,\.s,'`" "; \
 | 
						|
		$(CPP) -M $$i;done) >> tmp_make
 | 
						|
	cp tmp_make Makefile
 | 
						|
 | 
						|
### Dependencies:
 |