1 # Global rules shared by all makefiles
2 # The makefile must define at least TOPSRC and MODULE
12 DIVINCL = -I$(TOPSRC)/include
13 ALLCFLAGS = $(CFLAGS) $(DEFS) -ALANG\($(LANG)\) $(X_CFLAGS) $(DIVINCL) $(EXTRA_DEFS)
18 OBJS = $(C_SRCS:.c=.o) $(ASM_SRCS:.S=.o)
21 $(CC) -c $(ALLCFLAGS) -o $*.o $<
27 $(LDCOMBINE) $(OBJS) -o $(MODULE).o
30 sed '/\#\#\# Dependencies/q' < Makefile > tmp_make
31 $(CC) $(ALLCFLAGS) -MM $(C_SRCS) >> tmp_make
35 $(RM) *.o \#*\# *~ *.bak tmp_make