projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-19981113-2
[rocksndiamonds.git]
/
src
/
Makefile
diff --git
a/src/Makefile
b/src/Makefile
index a3a5b396b7630fb745abcf774112515fd8ed8de2..a6ab699696ebb7356b22370b2e205af465a34d1a 100644
(file)
--- a/
src/Makefile
+++ b/
src/Makefile
@@
-11,10
+11,11
@@
CC = gcc
# on Solaris and similar systems, you'll need to uncomment this
CC = gcc
# on Solaris and similar systems, you'll need to uncomment this
-
#
EXTRA_LIBS = -lnsl -lsocket
+EXTRA_LIBS = -lnsl -lsocket
-# specify X11 library path on your system
-XLIB_PATH = /usr/X11/lib
+# specify path to X11 on your system
+# X11_PATH = /usr/X11
+X11_PATH = /local/X11
# change this to the directory where you want to install game data like levels
GAME_DIR = .
# change this to the directory where you want to install game data like levels
GAME_DIR = .
@@
-72,7
+73,12
@@
DEBUG = -DDEBUG -g -Wall
# LIBS = -L/usr/X11R6/lib -lX11 -lm
# LIBS = -L/usr/X11R6/lib $(EXTRA_X11_LIBS) -lX11 -lm $(EXTRA_LIBS)
# LIBS = -L/usr/X11R6/lib -lX11 -lm
# LIBS = -L/usr/X11R6/lib $(EXTRA_X11_LIBS) -lX11 -lm $(EXTRA_LIBS)
-LIBS = -L$(XLIB_PATH) $(EXTRA_X11_LIBS) -lX11 -lm $(EXTRA_LIBS)
+
+XINC_PATH = $(X11_PATH)/include
+XLIB_PATH = $(X11_PATH)/lib
+
+INCL = -I$(XINC_PATH)
+LIBS = -L$(XLIB_PATH) $(EXTRA_X11_LIBS) -lX11 -lm $(EXTRA_LIBS) -R$(XLIB_PATH)
# CFLAGS = -O2 $(CONFIG) $(SYSTEM)
CFLAGS = $(DEBUG) $(CONFIG) $(SYSTEM) $(INCL)
# CFLAGS = -O2 $(CONFIG) $(SYSTEM)
CFLAGS = $(DEBUG) $(CONFIG) $(SYSTEM) $(INCL)
@@
-92,7
+98,6
@@
SRCS = main.c \
joystick.c \
cartoons.c \
random.c \
joystick.c \
cartoons.c \
random.c \
- gif.c \
pcx.c \
image.c \
network.c \
pcx.c \
image.c \
network.c \
@@
-113,7
+118,6
@@
OBJS = main.o \
joystick.o \
cartoons.o \
random.o \
joystick.o \
cartoons.o \
random.o \
- gif.o \
pcx.o \
image.o \
network.o \
pcx.o \
image.o \
network.o \
@@
-132,10
+136,3
@@
clean:
backup:
./make_backup.sh
backup:
./make_backup.sh
-
-depend:
- for i in $(SRCS); do $(CPP) $(CFLAGS) -M $$i; done > .depend
-
-ifeq (.depend,$(wildcard .depend))
-include .depend
-endif