40 lines
509 B
Makefile
40 lines
509 B
Makefile
|
##########################################################
|
||
|
#
|
||
|
# $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 $@
|
||
|
|
||
|
|