Permalink
Switch branches/tags
Nothing to show
Find file
4eb368a Jan 31, 2012
40 lines (31 sloc) 509 Bytes
##########################################################
#
# $Id:$
#
# $Log:$
#
#
CC=gcc
CFLAGS=-O -DNORMALUNIX -DLINUX
LDFLAGS=
LIBS=-lm
O=linux
all: $(O)/sndserver
clean:
rm -f *.o *~ *.flc
rm -f linux/*
# Target
$(O)/sndserver: \
$(O)/soundsrv.o \
$(O)/sounds.o \
$(O)/wadread.o \
$(O)/linux.o
$(CC) $(CFLAGS) $(LDFLAGS) \
$(O)/soundsrv.o \
$(O)/sounds.o \
$(O)/wadread.o \
$(O)/linux.o -o $(O)/sndserver $(LIBS)
echo make complete.
# Rule
$(O)/%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@