summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile13
-rw-r--r--README17
-rw-r--r--xd.c4
3 files changed, 21 insertions, 13 deletions
diff --git a/Makefile b/Makefile
index 9b2b6ee..4a959fe 100644
--- a/Makefile
+++ b/Makefile
@@ -33,24 +33,15 @@ LIBS = -lX11 -lm
FLAGS = -g -I/usr/X11R6/include -L/usr/X11R6/lib
-DEPEND = depend.mak
-
$(TARGET): $(OBJECTS)
$(CC) $(FLAGS) -o $(TARGET) $(OBJECTS) $(LIBS)
%.o: %.c
$(CC) $(CFLAGS) $(CPPFLAGS) $(FLAGS) $(TRACE) -c $< -o $@
--include depend.mak
+xd.o: xd.c
clean:
- -rm $(TARGET) $(TARGET).exe core *.stackdump *.o depend.mak
-
-depend: $(DEPEND)
- @echo Dependencies updated....
-
-$(DEPEND): $(SOURCES) $(HEADERS)
- $(CC) $(FLAGS) -MM $(SOURCES) > $(DEPEND)
-
+ -rm -f $(TARGET) $(TARGET).exe core *.stackdump *.o
# END OF FILE
diff --git a/README b/README
new file mode 100644
index 0000000..3ab53a7
--- /dev/null
+++ b/README
@@ -0,0 +1,17 @@
+BUILDING
+--------
+To build just run 'make'. To run, just type 'xd'.
+
+
+DESCRIPTION
+-----------
+
+xd is a basic framework to make it easy to write the odd "I'm bored for 10
+minutes" graphical hacks.
+
+GENERAL KEYS
+------------
+
+Press 'Page up' and 'Page down' to cycle through the demos. The window title
+will contain the name of the current demo, sometimes along with additional
+instructions.
diff --git a/xd.c b/xd.c
index 548c3da..3a9a588 100644
--- a/xd.c
+++ b/xd.c
@@ -212,7 +212,7 @@ static DemoInfo demotbl[NO_DEMOS]=
UsesPixmap
},
{
- "Test3DDemo",
+ "Test3DDemo (LMB to change mode, RMB to change culling)",
Test3DDemo,
UsesPixmap
},
@@ -237,7 +237,7 @@ static DemoInfo demotbl[NO_DEMOS]=
UsesPixmap
},
{
- "Crater Landscape",
+ "Crater Landscape (LMB to enter view mode, RMB to change draw mode)",
CraterDemo,
UsesPixmap
},