David Turner | 046f7a0 | 2000-09-15 22:42:06 +0000 | [diff] [blame] | 1 | # |
Werner Lemberg | 47a5f41 | 2000-10-17 03:38:43 +0000 | [diff] [blame] | 2 | # FreeType 2 generic pseudo ANSI compiler |
David Turner | 046f7a0 | 2000-09-15 22:42:06 +0000 | [diff] [blame] | 3 | # |
| 4 | |
Werner Lemberg | 47a5f41 | 2000-10-17 03:38:43 +0000 | [diff] [blame] | 5 | |
Werner Lemberg | 8a4de0d | 2006-02-01 07:52:11 +0000 | [diff] [blame] | 6 | # Copyright 1996-2000, 2003, 2006 by |
Werner Lemberg | 47a5f41 | 2000-10-17 03:38:43 +0000 | [diff] [blame] | 7 | # David Turner, Robert Wilhelm, and Werner Lemberg. |
| 8 | # |
| 9 | # This file is part of the FreeType project, and may only be used, modified, |
| 10 | # and distributed under the terms of the FreeType project license, |
| 11 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you |
| 12 | # indicate that you have read the license and understand and accept it |
| 13 | # fully. |
| 14 | |
| 15 | |
David Turner | 046f7a0 | 2000-09-15 22:42:06 +0000 | [diff] [blame] | 16 | # Compiler command line name |
Werner Lemberg | bd547dc | 2000-09-22 21:23:29 +0000 | [diff] [blame] | 17 | # |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 18 | CC := cc |
| 19 | COMPILER_SEP := $(SEP) |
| 20 | |
David Turner | 046f7a0 | 2000-09-15 22:42:06 +0000 | [diff] [blame] | 21 | |
| 22 | # The object file extension (for standard and static libraries). This can be |
| 23 | # .o, .tco, .obj, etc., depending on the platform. |
| 24 | # |
| 25 | O := o |
| 26 | SO := o |
| 27 | |
| 28 | # The library file extension (for standard and static libraries). This can |
| 29 | # be .a, .lib, etc., depending on the platform. |
| 30 | # |
| 31 | A := a |
| 32 | SA := a |
| 33 | |
| 34 | |
| 35 | # Path inclusion flag. Some compilers use a different flag than `-I' to |
| 36 | # specify an additional include path. Examples are `/i=' or `-J'. |
| 37 | # |
| 38 | I := -I |
| 39 | |
| 40 | |
| 41 | # C flag used to define a macro before the compilation of a given source |
Werner Lemberg | bd547dc | 2000-09-22 21:23:29 +0000 | [diff] [blame] | 42 | # object. Usually it is `-D' like in `-DDEBUG'. |
David Turner | 046f7a0 | 2000-09-15 22:42:06 +0000 | [diff] [blame] | 43 | # |
| 44 | D := -D |
| 45 | |
| 46 | |
| 47 | # The link flag used to specify a given library file on link. Note that |
| 48 | # this is only used to compile the demo programs, not the library itself. |
| 49 | # |
| 50 | L := -l |
| 51 | |
| 52 | |
| 53 | # Target flag. |
| 54 | # |
Werner Lemberg | 91481f8 | 2000-11-04 23:41:02 +0000 | [diff] [blame] | 55 | T := -o$(space) |
David Turner | 046f7a0 | 2000-09-15 22:42:06 +0000 | [diff] [blame] | 56 | |
| 57 | |
| 58 | # C flags |
| 59 | # |
| 60 | # These should concern: debug output, optimization & warnings. |
| 61 | # |
| 62 | # Use the ANSIFLAGS variable to define the compiler flags used to enfore |
| 63 | # ANSI compliance. |
| 64 | # |
Werner Lemberg | 8a4de0d | 2006-02-01 07:52:11 +0000 | [diff] [blame] | 65 | CFLAGS ?= -c |
David Turner | 046f7a0 | 2000-09-15 22:42:06 +0000 | [diff] [blame] | 66 | |
| 67 | # ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant. |
| 68 | # |
| 69 | # we assume the compiler is already strictly ANSI |
| 70 | # |
| 71 | ANSIFLAGS := |
| 72 | |
| 73 | |
| 74 | # Library linking |
| 75 | # |
Werner Lemberg | 8a4de0d | 2006-02-01 07:52:11 +0000 | [diff] [blame] | 76 | CLEAN_LIBRARY ?= $(DELETE) $(subst /,$(SEP),$(PROJECT_LIBRARY)) |
| 77 | LINK_LIBRARY = $(AR) -r $@ $(subst /,$(COMPILER_SEP),$(OBJECTS_LIST)) |
Werner Lemberg | 858f310 | 2003-06-09 04:46:30 +0000 | [diff] [blame] | 78 | |
David Turner | 046f7a0 | 2000-09-15 22:42:06 +0000 | [diff] [blame] | 79 | |
| 80 | # EOF |