From a67634b9dc32d47cba5f75341bff2349d9ebbbcf Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 4 Feb 2005 16:53:47 +0000 Subject: [PATCH] Header file cleanup. --- battle.c | 1 - io.c | 1 - makefile | 13 +++++++++++++ moving.c | 4 ++-- reports.c | 1 - sstlinux.c | 1 - 6 files changed, 15 insertions(+), 6 deletions(-) diff --git a/battle.c b/battle.c index bcfd707..5389821 100644 --- a/battle.c +++ b/battle.c @@ -1,6 +1,5 @@ #include #include "conio.h" -#include "sstlinux.h" #include "sst.h" void doshield(int i) { diff --git a/io.c b/io.c index 8841b1a..e9cc3d7 100644 --- a/io.c +++ b/io.c @@ -9,7 +9,6 @@ #include #include "conio.h" -#include "sstlinux.h" #include "sst.h" #ifndef SERGEEV diff --git a/makefile b/makefile index d047666..e37d446 100644 --- a/makefile +++ b/makefile @@ -17,6 +17,19 @@ SOURCES= $(CFILES) $(HFILES) $(DOCS) sst.doc sst.6 makehelp.py makefile sst.spec all: sst sst.doc +ai.o: ai.c sst.h +battle.o: battle.c conio.h sst.h +conio.o: conio.c conio.h +events.o: events.c sst.h +finish.o: finish.c sst.h +io.o: io.c conio.h sst.h +moving.o: moving.c sstlinux.h conio.h sst.h +planets.o: planets.c sst.h +reports.o: reports.c sst.h conio.h +setup.o: setup.c conio.h sst.h +sst.o: sst.c conio.h sstlinux.h sst.h +sstlinux.o: sstlinux.c sstlinux.h + sst: $(OFILES) gcc -o sst $(OFILES) -lm -lcurses diff --git a/moving.c b/moving.c index 174cd54..17f3a22 100644 --- a/moving.c +++ b/moving.c @@ -1,6 +1,6 @@ -#include "conio.h" -#include "sstlinux.h" #include +#include "sstlinux.h" +#include "conio.h" #include "sst.h" static void getcd(int, int); diff --git a/reports.c b/reports.c index 8cbf55e..f866a7b 100644 --- a/reports.c +++ b/reports.c @@ -3,7 +3,6 @@ #include #include #include "conio.h" -#include "sstlinux.h" void attakreport(int l) { if (!l) { diff --git a/sstlinux.c b/sstlinux.c index 4c479a0..90d50ad 100644 --- a/sstlinux.c +++ b/sstlinux.c @@ -2,7 +2,6 @@ #include #include #include - #include "sstlinux.h" static int fd = 0; -- 2.31.1