1# 2# Makefile for the linux ipc. 3# 4# Note! Dependencies are done automagically by 'make dep', which also 5# removes any old dependencies. DON'T put your own dependencies here 6# unless it's something special (ie not a .c file). 7# 8# Note 2! The CFLAGS definition is now in the main makefile... 9 10.c.o: 11 $(CC) $(CFLAGS) -c $< 12.s.o: 13 $(AS) -o $*.o $< 14.c.s: 15 $(CC) $(CFLAGS) -S $< 16 17OBJS = util.o 18SRCS = util.c 19 20ifdef CONFIG_SYSVIPC 21OBJS := $(OBJS) msg.o sem.o shm.o 22SRCS := $(SRCS) msg.c sem.c shm.c 23endif 24 25ipc.o: $(OBJS) 26 $(LD) -r -o ipc.o $(OBJS) 27 28dep: 29 $(CPP) -M $(SRCS) > .depend 30 31dummy: 32 33# 34# include a dependency file if one exists 35# 36ifeq (.depend,$(wildcard .depend)) 37include .depend 38endif 39

