Просмотр исходного кода

protoshoot: use Makefile pattern for utils

- link to libsctp if SCTP support is enabled
Daniel-Constantin Mierla 12 лет назад
Родитель
Сommit
1bdbdb64e4
1 измененных файлов с 16 добавлено и 3 удалено
  1. 16 3
      utils/protoshoot/Makefile

+ 16 - 3
utils/protoshoot/Makefile

@@ -1,13 +1,26 @@
 #
 #
 
 
-include ../../Makefile.defs
+COREPATH=../..
+include $(COREPATH)/Makefile.defs
+include $(COREPATH)/Makefile.targets
 
 
 auto_gen=
 auto_gen=
 NAME=protoshoot
 NAME=protoshoot
+RELEASE=0.2
 
 
-include ../../Makefile.sources
+ifneq (,$(findstring -DUSE_SCTP,$(C_DEFS)))
+SCTP=1
+endif
 
 
-include ../../Makefile.rules
+ifeq ($(SCTP),1)
+ifeq ($(OS), linux)
+	LIBS+= -lsctp
+endif
+endif
+
+include $(COREPATH)/Makefile.utils
+
+$(NAME).o:
 
 
 modules:
 modules: