42 lines
620 B
Makefile
42 lines
620 B
Makefile
CC = @CC@
|
|
CFLAGS = @CFLAGS@
|
|
XINCL = @x_includes@
|
|
TOPSRC = @top_srcdir@
|
|
DIVINCL = -I$(TOPSRC)/include
|
|
|
|
|
|
all: build
|
|
|
|
build: build.o
|
|
$(CC) $(CFLAGS) -o build build.o
|
|
|
|
.c.o:
|
|
$(CC) -c $(CFLAGS) $(XINCL) $(DIVINCL) -o $*.o $<
|
|
|
|
depend:
|
|
sed '/\#\#\# Dependencies/q' < Makefile > tmp_make
|
|
$(CC) $(DIVINCL) $(XINCL) -MM *.c >> tmp_make
|
|
cp tmp_make Makefile
|
|
rm tmp_make
|
|
|
|
clean:
|
|
rm -f *.o \#*\# *~ build tmp_make
|
|
|
|
distclean: clean
|
|
rm Makefile
|
|
|
|
countryclean:
|
|
|
|
NAMES = $(SRCS:.c=)
|
|
|
|
winelibclean:
|
|
for i in $(NAMES); do \
|
|
if test `grep -c WINELIB $$i.c` -ne 0; then \
|
|
rm $$i.o; \
|
|
fi; \
|
|
done
|
|
|
|
dummy:
|
|
|
|
### Dependencies:
|