2003-12-31 03:39:10 +01:00
|
|
|
VERSION = 1.3.10.1
|
2003-12-31 08:18:06 +01:00
|
|
|
NAME = dgamelaunch
|
|
|
|
exclusions = CVS .cvsignore
|
|
|
|
|
2003-12-31 19:58:20 +01:00
|
|
|
ifndef optimize
|
|
|
|
optimize = -O0
|
|
|
|
endif
|
|
|
|
|
2003-12-30 22:30:32 +01:00
|
|
|
CC = gcc
|
|
|
|
LDFLAGS =
|
2003-12-31 19:58:20 +01:00
|
|
|
CFLAGS = -g3 $(optimize) -Wall -W -Wno-unused-parameter $(DEFS)
|
2003-12-31 03:39:10 +01:00
|
|
|
DEFS = -DVERSION=\"$(VERSION)\"
|
2003-12-30 22:30:32 +01:00
|
|
|
SRCS = virus.c ttyrec.c dgamelaunch.c io.c ttyplay.c stripgfx.c
|
|
|
|
OBJS = $(SRCS:.c=.o)
|
|
|
|
LIBS = -lncurses -lcrypt
|
|
|
|
|
2003-12-31 08:18:06 +01:00
|
|
|
all: $(NAME)
|
2003-12-30 22:30:32 +01:00
|
|
|
|
2003-12-31 08:18:06 +01:00
|
|
|
$(NAME): $(OBJS)
|
2003-12-30 22:30:32 +01:00
|
|
|
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f dgamelaunch
|
2004-01-01 03:06:07 +01:00
|
|
|
rm -f *.o .#* *~
|
2003-12-30 22:30:32 +01:00
|
|
|
install:
|
2003-12-30 23:58:55 +01:00
|
|
|
cp dgamelaunch /usr/sbin
|
2003-12-30 22:30:32 +01:00
|
|
|
indent:
|
2003-12-31 20:47:49 +01:00
|
|
|
indent -nut -ts2 *.c *.h
|
2004-01-01 03:06:07 +01:00
|
|
|
rm -f *~
|
2003-12-31 08:18:06 +01:00
|
|
|
|
|
|
|
dist: clean indent
|
|
|
|
rm -rf $(NAME)-$(VERSION)
|
|
|
|
(cd .. && ln -sf $(CURDIR) $(NAME)-$(VERSION))
|
|
|
|
(cd .. && tar $(addprefix --exclude ,$(exclusions)) -chzf $(NAME)-$(VERSION).tar.gz $(NAME)-$(VERSION))
|
|
|
|
rm -f ../$(NAME)-$(VERSION)
|
|
|
|
@echo "Created source release $(NAME)-$(VERSION).tar.gz"
|
|
|
|
|
2004-01-01 20:32:48 +01:00
|
|
|
# Dependencies - we may auto-generate later
|
|
|
|
dgamelaunch.o: dgamelaunch.c dgamelaunch.h
|
|
|
|
io.o: io.c ttyrec.h
|
|
|
|
last_char_is.o: last_char_is.c
|
|
|
|
stripgfx.o: stripgfx.c stripgfx.h
|
|
|
|
ttyplay.o: ttyplay.c ttyrec.h io.h stripgfx.h
|
|
|
|
ttyrec.o: ttyrec.c dgamelaunch.h ttyrec.h io.h
|
|
|
|
virus.o: virus.c last_char_is.c
|