summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
Diffstat (limited to 'README')
-rw-r--r--README16
1 files changed, 13 insertions, 3 deletions
diff --git a/README b/README
index 3c933a8..bb89090 100644
--- a/README
+++ b/README
@@ -20,14 +20,24 @@ Compilation and usage
As I may have said somewhere else, you need **OpenGL** (development version, that with header files) and **freeGLUT** (development version for this one as well).
-Using the make file in the repository's root:
+After installing the required dependencies, run the following command.
-- **`make`** builds all the translation units, skipping those which have been built already.
+ ./sh/platdep.sh
+
+If the command printed one or more make file macros, consider the macro that most closely represents your platform. For example, if the script outputs both `OBJS_LINUX` and `OBJS_DEBIAN`, you might want to go with `OBJS_DEBIAN` as it's more specific and should provide better support. Then, run the following line after replacing `MACRO` with the name you just chose.
+
+ make 'OBJS_PLATDEP=$(MACRO)'
+
+This is going to compile all source files into object files and then build a static library out of them.
+
+These below are other useful make file targets. It is advised to specify the macro definition above for all targets since some of them may depend on it. Alternatively, you could edit the make file to make the definition permanent.
+
+- **`make`** or **`make all`** builds all the translation units, skipping those which have been built already.
- **`make install`** moves all object files to the respective directories in the machine's file system.
- **`make uninstall`** removes all object files from the machine's file system.
- **`make clean`** removes all object files produced by `make` from the repository's directory.
-The ultimate object file is a library called `libfemtokit`, which is
+The ultimate object file is a library called `libfemtokit`, which is essentially what you're going to link your programs against.
Repository structure
--------------------