18 CFLAGS
:=$(CFLAGS
) -O3
-I
/usr
/include -I
/usr
/local
/include -L
/usr
/lib
-L
/usr
/local
/lib
19 LIBS
:=-lm
-lpthread
-lssl
-lcrypto
20 WARNING_FLAGS
:=$(WARNING_FLAGS
) -Wall
21 DEBUG_FLAGS
:=$(DEBUG_FLAGS
) -g
24 OBJS
:=src
/math.o src
/error.o src
/linux.o src
/print.o src
/thread.o src
/shallot.o
25 OBJS_DBG
:=src
/math.dbg.o src
/error.dbg.o src
/linux.dbg.o src
/print.dbg.o src
/thread.dbg.o src
/shallot.dbg.o
29 $(CC
) $(CFLAGS
) -pthread
$^
-o shallot
$(LIBS
)
32 $(CC
) $(DEBUG_FLAGS
) $(CFLAGS
) -pthread
$^
-o shallot
$(LIBS
)
37 $(CP
) shallot
/usr
/bin
/
39 $(RM
) /usr
/bin
/shallot
44 $(CC
) $(CFLAGS
) $(WARNING_FLAGS
) -o
$@
-c
$^
47 $(CC
) $(DEBUG_FLAGS
) $(CFLAGS
) $(WARNING_FLAGS
) -o
$@
-c
$^