CC = gcc CFLAGS= -Wall -Wstrict-prototypes $(COPT.arch) -I/usr/include/sys LIBS= -lm OBJS= soundsrv.o sounds.o wadread.o linux.o all: @echo "Choose one of following actions:" @echo @echo " make sndserver - will build the soundserver" @echo @echo " make clean - will clean up object and exec files" @echo sndserver: dep $(OBJS) $(CC) $(CFLAGS) $(OBJS) $(LIBS) -o sndserver cp sndserver ../ clean: rm -f $(OBJS) sndserver ../sndserver .depend *~ dep: $(CC) -E -M $(CFLAGS) *.c > .depend %.o: %.c $(CC) $(CFLAGS) -c $< -o $@ ifeq (.depend,$(wildcard .depend)) include .depend endif