REALLY updated compile.txt. (hadn't work)

This commit is contained in:
tobast 2012-01-08 18:14:50 +01:00
parent 40c610239d
commit 16f7c6adb6

View file

@ -3,38 +3,20 @@
So, you've downloaded the source code of PastebinCL and don't know how to compile it? So, you've downloaded the source code of PastebinCL and don't know how to compile it?
Follow those steps! Follow those steps!
----------------
BEFORE COMPILING
----------------
NB: UNIX is defaultly selected.
- Open "data.h" and select your OS by commenting the wrong one (add "//" at the beginning of the line) and uncommenting the other, eg.
If you're using Windows:
// #define UNIX
#define WINDOWS
If you're using UNIX (Linux, MacOS, BSD, ...):
#define UNIX
// #define WINDOWS
(around the line 40, you'll find this code)
- Save and close "data.h"
- You're ready to compile!
------------------------ ------------------------
COMPILE ON UNIX-BASED OS COMPILE ON UNIX-BASED OS
------------------------ ------------------------
- Just run "make" and then "make install" (as root for installing) ;) - Just run "make" and then "make install" (as root for installing) ;)
------------------ ------------------
COMPILE ON WINDOWS COMPILE ON WINDOWS
------------------ ------------------
- Open "data.h"
- Delete "//" at the beginning of this line : "// #define WINDOWS"
- Add "//" at the beginning of this line : "#define UNIX"
- Save & close the file
- If you can run "make" using CygWIN, MinGW or other, that's the easiest way. - If you can run "make" using CygWIN, MinGW or other, that's the easiest way.
- Else, you can create a Code::blocks or other IDE project and then compile. - Else, you can create a Code::blocks or other IDE project and then compile.