Subversion Repositories shark

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1601 tullio 1
# This will make one single object file from multiple sources [Lex.N]
2
 
3
DYNALINK=1
4
ifndef BASE
5
BASE=../..
6
endif
7
 
8
include $(BASE)/config/config.mk
9
 
10
OTHERINCL += -I$(BASE)/drivers/linuxc26/include -I./include -I.
11
OTHERINCL += -I$(BASE)/drivers/pci/include
12
OTHERINCL += -I$(BASE)/drivers/input/include
13
 
14
# add all sources here..
15
OBJS = app.o
16
 
17
all: sh_app.o
18
	$(MV) sh_app.o sh_app.bin
19
 
20
 
21
clean :
22
	$(RM) *.o
23
 
24
sh_app.o: $(OBJS)
25
	$(LD) $(LINK_OPT) $(OBJS) -r -s -o sh_app.o
26
 
27
 
28
# Common rules
29
%.o : %.c
30
	$(REDIR) $(CC) $(C_OPT) $(C_OUTPUT) -c $<
31
%.s : %.c
32
	$(REDIR) $(CC) $(C_OPT) $(C_OUTPUT) -S $<
33
%.o : %.s
34
	$(CC) $(ASM_OPT) -c $<
35