1# $Id$ 2# 3# Common makefiles part (include-file) for smapi 4 5# Use defines before including this file: 6# _OBJ object files suffix begins with point (".o", ".obj", ... ) 7# _LIB library files suffix begins with point (".a", ".lib", ... ) 8# _DLL dinamic linking library files suffix begins with point (".dll", ".so", ...) 9# LIBPREFIX library filename prefix ("lib", "", ...) 10# LIBSUFFIX library filename suffix (compiler ID, three characters, somewhere empty) 11# DLLPREFIX dinamic linking library prefix (usually empty) 12# DLLSUFFIX dinamic linking library suffix (compiler ID or empty) 13# O, B, L, H prefixes to use with names of objects, binaries, libraries and headers respectively 14 15# Library name 16LIBNAME = smapi 17 18# Version 19VERMAJOR= 2 20VERMINOR= 5 21VERPATCH= 0 22VERH = $(VERMAJOR).$(VERMINOR) 23VER = $(VERH).$(VERPATCH) 24 25# Sources directory 26SRC_DIR =../src/ 27# Headers directory 28H_DIR =../smapi/ 29 30# Header files (please sort list to easy check by human) 31HEADERS = $(H)api_jam.h $(H)api_jamp.h $(H)api_sdm.h $(H)api_sdmp.h \ 32 $(H)api_sq.h $(H)api_sqp.h $(H)apidebug.h $(H)msgapi.h $(H)old_msg.h 33 34# Object files: library (please sort list to easy check by human) 35OBJS1 = $(O)api_jam$(_OBJ) $(O)api_sdm$(_OBJ) $(O)msgapi$(_OBJ) $(O)sq_area$(_OBJ) 36OBJS2 = $(O)sq_hash$(_OBJ) $(O)sq_help$(_OBJ) $(O)sq_idx$(_OBJ) $(O)sq_kill$(_OBJ) 37OBJS3 = $(O)sq_lock$(_OBJ) $(O)sq_misc$(_OBJ) $(O)sq_msg$(_OBJ) $(O)sq_read$(_OBJ) 38OBJS4 = $(O)sq_uid$(_OBJ) $(O)sq_write$(_OBJ) $(O)structrw$(_OBJ) 39OBJS = $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4) 40 41# Binary file(s) to build from sources 42PROGRAMS= 43 44# Usually compose from LIBPREFIX, LIBSUFFIX and LIB. 45TARGETLIB = $(L)$(LIBPREFIX)$(LIBNAME)$(LIBSUFFIX)$(_LIB) 46TARGETDLL = $(B)$(DLLPREFIX)$(LIBNAME)$(DLLSUFFIX)$(_DLL) 47TARGET_H = api_jam.h msgapi.h 48 49# List of HUSKY libraries required to build binary file(s) 50LIBS = 51 52