diff options
Diffstat (limited to 'font')
| -rw-r--r-- | font/Makefile | 2 | ||||
| -rw-r--r-- | font/editor.c | 4 | ||||
| -rw-r--r-- | font/packer.c | 4 |
3 files changed, 9 insertions, 1 deletions
diff --git a/font/Makefile b/font/Makefile index e3b0c8c..7bb04e0 100644 --- a/font/Makefile +++ b/font/Makefile @@ -1,5 +1,5 @@ editor: editor.c - gcc -oeditor -DSCALE=2 editor.c -lSDL -lm -O3 -ffast-math -march=k8 -Wall -std=c99 + gcc -oeditor -DSCALE=2 -DFONTEDITOR editor.c -lSDL -lm -O3 -ffast-math -march=k8 -Wall -std=c99 clean: rm -f editor packer diff --git a/font/editor.c b/font/editor.c index 71c5aa0..7714782 100644 --- a/font/editor.c +++ b/font/editor.c @@ -1,3 +1,5 @@ +#ifdef FONTEDITOR + #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -282,3 +284,5 @@ int main(int argc, char *argv[]) return 0; } + +#endif diff --git a/font/packer.c b/font/packer.c index db57b1a..b30e6d3 100644 --- a/font/packer.c +++ b/font/packer.c @@ -1,3 +1,5 @@ +#ifdef FONTEDITOR + #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -98,3 +100,5 @@ int main(int argc, char *argv[]) return 0; } + +#endif |
