# ļmakeobj.shԶ
############################################################
# Ŀ : 
# ģ : 
#   ע : 
############################################################

###### Դļ
#@ c_FILE
c_FILE		=	\
			IDL_restserver_conf.dsc.c \
			publib.c \
			main.c \
			tcpmain.c \
			process_http_request.c \

c_FILE2		=	\
			list.c \
			LOGC.c \
			rest_server_context.c \
			rest_service_controler.c \
			restserver_api.c \

###### ĿļװĿ¼
include makeinstall
BIN		=	restserver
BININST		=	$(_BININST)

NOINST_OBJ	=	sizeof

LIB		=	librestserver_api.so
LIBINST		=	$(_LIBINST)

HDER		= \
			LOGC.h \
			restserver_api.h \

HDERINST	=	$(HOME)/include/restserver

###### ѡ
CFLAGS		=	$(_CFLAGS) \
			-I$(HOME)/include/fasterjson \
			-I$(HOME)/include/fasterhttp \
			-I$(HOME)/include/tcpdaemon \
			-std=gnu99 \

CPPFLAGS	=	$(_CFLAGS) \

###### ѡ
LFLAGS		=	$(_LFLAGS) \
			-L$(HOME) \
			-lfasterjson \
			-lfasterhttp \
			-ltcpdaemon \
			-ldl \

###### 궨
CLEAN_ADDITION	=

PREMAKE		=

###### mktplģ
#@ make_all
#@ make_clean_test
#@ make_clean
#@ make_install
#@ make_install_BININST
#@ make_install_HDERINST
#@ make_install_DFTHDERINST
#@ make_uninstall
#@ make_uninstall_BININST
#@ make_uninstall_HDERINST
#@ make_uninstall_DFTHDERINST
include $(MKTPL2_HOME)/makeobj_$(MKTPL2_OS).inc

###### Ŀļϵ
restserver		:	$(c_FILE_o) librestserver_api.so
	$(CC) -o $@ $(c_FILE_o) librestserver_api.so $(LFLAGS)

librestserver_api.so	:	$(c_FILE2_o)
	$(CC) -o $@ $(c_FILE2_o) $(SOFLAGS) $(LFLAGS)

sizeof			:	sizeof.o
	$(CC) -o $@ sizeof.o $(LFLAGS)

