1# $Id$ 2# 3# Common makefiles part (include-file) for huskylib 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 = husky 17 18# Version 19VERMAJOR= 1 20VERMINOR= 9 21VERPATCH= 0 22VERH = $(VERMAJOR).$(VERMINOR) 23VER = $(VERH).$(VERPATCH) 24 25# Sources directory 26SRC_DIR =../src/ 27# Headers directory 28H_DIR =../huskylib/ 29 30# Header files (please sort list to easy check by human) 31HEADERS1= $(H)BCD.h $(H)BCO.h $(H)BCW.h $(H)BEOS5.h $(H)BORLANDC.h $(H)DJGPP.h 32HEADERS2= $(H)EMX.h $(H)HIGHC.h $(H)IBMC_OS2.h $(H)MINGW32.h $(H)MSC.h $(H)MSVC.h 33HEADERS3= $(H)SASC.h $(H)UNIX.h $(H)WATCOMC.h $(H)WCD.h $(H)WCO.h $(H)WCW.h 34HEADERS4= $(H)WCX.h $(H)calendar.h $(H)compiler.h $(H)crc.h $(H)cvtdate.h 35HEADERS5= $(H)dirlayer.h $(H)fexist.h $(H)ffind.h $(H)huskyext.h $(H)huskylib.h 36HEADERS6= $(H)log.h $(H)locking.h $(H)memory.h $(H)pstdint.h $(H)recode.h 37HEADERS7= $(H)strext.h $(H)syslogp.h $(H)temp.h $(H)tree.h $(H)typesize.h $(H)unused.h 38HEADERS8= $(H)vixie.h $(H)xstr.h $(H)ftnaddr.h 39HEADERS = $(HEADERS1) $(HEADERS2) $(HEADERS3) $(HEADERS4) $(HEADERS5) $(HEADERS6) $(HEADERS7) $(HEADERS8) 40 41# Object files: library (please sort list to easy check by human) 42OBJS1 = $(O)adcase$(_OBJ) $(O)calendar$(_OBJ) $(O)cmpfname$(_OBJ) $(O)crc$(_OBJ) 43OBJS2 = $(O)cvtdate$(_OBJ) $(O)dirlayer$(_OBJ) $(O)fexist$(_OBJ) $(O)ffind$(_OBJ) 44OBJS3 = $(O)genmsgid$(_OBJ) $(O)genverst$(_OBJ) $(O)getfree$(_OBJ) $(O)ioutil$(_OBJ) 45OBJS4 = $(O)log$(_OBJ) $(O)locking$(_OBJ) $(O)mapfile$(_OBJ) $(O)memory$(_OBJ) 46OBJS5 = $(O)qksort$(_OBJ) $(O)patmat$(_OBJ) $(O)recode$(_OBJ) $(O)ftnaddr$(_OBJ) 47OBJS6 = $(O)setfsize$(_OBJ) $(O)strext$(_OBJ) $(O)strftime$(_OBJ) $(O)temp$(_OBJ) 48OBJS7 = $(O)tdelay$(_OBJ) $(O)tree$(_OBJ) $(O)version$(_OBJ) $(O)xstr$(_OBJ) 49OBJS8 = 50OBJS = $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4) $(OBJS5) $(OBJS6) $(OBJS7) $(OBJS8) 51 52# Object files: programs 53GNMSGIDOBJ= $(O)gnmsgid$(_OBJ) 54PRGOBJS = $(GNMSGIDOBJ) 55 56# Binary file(s) to build from sources 57GNMSGID = $(B)gnmsgid$(_EXE) 58PROGRAMS= $(GNMSGID) 59 60# Usually compose from LIBPREFIX, LIBSUFFIX and LIB. 61TARGETLIB = $(L)$(LIBPREFIX)$(LIBNAME)$(LIBSUFFIX)$(_LIB) 62TARGETDLL = $(B)$(DLLPREFIX)$(LIBNAME)$(DLLSUFFIX)$(_DLL) 63TARGET_H = *.h 64 65# List of HUSKY libraries required to build binary file(s) 66LIBS = 67