X-Git-Url: http://sigaev.ru/git/gitweb.cgi?p=remotetop.git;a=blobdiff_plain;f=Makefile;fp=Makefile;h=89029abccbadc3ba446ad72645b18f3d6b23b24e;hp=e531efd0dd513e30e5a2ac6d4da4b69fe5fa4611;hb=72d828bf3924ad09b92e247c8806447b373c1c64;hpb=e3fdb3b9f9b62a71c2a11b5e27ee47214901a3e2 diff --git a/Makefile b/Makefile index e531efd..89029ab 100644 --- a/Makefile +++ b/Makefile @@ -3,10 +3,19 @@ AR=ar rcv RANLIB=ranlib LD=ld -x -shared +ifndef OS +OS=$(shell uname) +endif + + INCLUDE=-I. -I../tedtools -CFLAGS=-Wall -g -O2 -pedantic -ansi -DASSERT_CORE -D_GNU_SOURCE -DHAVE_POLL_H -DHAVE_SYS_POLL_H -DHAVE_HSTRERROR +CFLAGS=-Wall -g -O2 -pedantic -ansi -D$(OS) LIB=-L../tedtools -ltedtools +ifeq ($(OS), Linux) +CFLAGS+= -D_GNU_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 +endif + PROGS=sendtop topd rtop .SUFFIXES: .o.c