diff options
| author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-09-25 12:58:47 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 21:03:22 -0700 |
| commit | 3f5a1da9cced68a0c945a755f120da25f6d264e6 (patch) | |
| tree | d9b8f81a02d5faff35c0cea92340656c94eb1a31 /Makefile | |
| parent | fd59b219733d711b36ac70038fcb7496e4501920 (diff) | |
| download | sparse-dev-3f5a1da9cced68a0c945a755f120da25f6d264e6.tar.gz | |
Add system-specific compatibility functions to make
up for various system deficiencies.
This makes sparse easier to port to silly things like
MinGW or Solaris. In particular:
- strtold() is a C99 thing, not everybody has it
- MinGW has problems with mmap(MAP_ANONYMOUS) and doesn't zero it.
- st_ino/st_dev is POSIX identity testing, not supported by MinGW
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,3 +1,5 @@ +OS=linux + CC=gcc CFLAGS=-O -g -Wall -Wwrite-strings LDFLAGS=-g @@ -11,7 +13,7 @@ LIB_H= token.h parse.h lib.h symbol.h scope.h expression.h target.h \ LIB_OBJS= target.o parse.o tokenize.o pre-process.o symbol.o lib.o scope.o \ expression.o show-parse.o evaluate.o expand.o inline.o linearize.o \ - sort.o + sort.o compat-$(OS).o LIB_FILE= sparse.a LIBS=$(LIB_FILE) |
