comparison src/Makefile @ 273:2463194c8cdd

updated for version 7.0073
author vimboss
date Thu, 19 May 2005 21:00:46 +0000
parents a20218704019
children 33d9c918b8ab
comparison
equal deleted inserted replaced
272:ddada568db54 273:2463194c8cdd
1223 CPP_DEPEND = $(CC) -I$(srcdir) -M$(CPP_MM) $(DEPEND_CFLAGS) 1223 CPP_DEPEND = $(CC) -I$(srcdir) -M$(CPP_MM) $(DEPEND_CFLAGS)
1224 1224
1225 # flags for cproto 1225 # flags for cproto
1226 # This is for cproto 3 patchlevel 8 or below 1226 # This is for cproto 3 patchlevel 8 or below
1227 # __inline, __attribute__ and __extension__ are not recognized by cproto 1227 # __inline, __attribute__ and __extension__ are not recognized by cproto
1228 NO_ATTR = -D__inline= -D"__attribute__\\(x\\)=" -D"__asm__\\(x\\)=" -D__extension__= \ 1228 NO_ATTR = -D__inline= -D__inline__= -DG_IMPLEMENT_INLINES \
1229 -D__restrict="" -D__gnuc_va_list=char -D__builtin_va_list=char 1229 -D"__attribute__\\(x\\)=" -D"__asm__\\(x\\)=" \
1230 -D__extension__= -D__restrict="" \
1231 -D__gnuc_va_list=char -D__builtin_va_list=char
1230 1232
1231 # 1233 #
1232 # This is for cproto 3 patchlevel 9 or above (currently 4.6) 1234 # This is for cproto 3 patchlevel 9 or above (currently 4.6)
1233 # __inline and __attribute__ are now recognized by cproto 1235 # __inline and __attribute__ are now recognized by cproto
1234 # -D"foo()=" is not supported by all compilers so do not use it 1236 # -D"foo()=" is not supported by all compilers so do not use it
1257 PRE_DEFS = -Iproto $(DEFS) $(GUI_DEFS) $(GUI_IPATH) $(CPPFLAGS) $(EXTRA_IPATHS) 1259 PRE_DEFS = -Iproto $(DEFS) $(GUI_DEFS) $(GUI_IPATH) $(CPPFLAGS) $(EXTRA_IPATHS)
1258 POST_DEFS = $(X_CFLAGS) $(MZSCHEME_CFLAGS) $(PERL_CFLAGS) $(PYTHON_CFLAGS) $(TCL_CFLAGS) $(RUBY_CFLAGS) $(EXTRA_DEFS) 1260 POST_DEFS = $(X_CFLAGS) $(MZSCHEME_CFLAGS) $(PERL_CFLAGS) $(PYTHON_CFLAGS) $(TCL_CFLAGS) $(RUBY_CFLAGS) $(EXTRA_DEFS)
1259 1261
1260 ALL_CFLAGS = $(PRE_DEFS) $(CFLAGS) $(PROFILE_CFLAGS) $(POST_DEFS) 1262 ALL_CFLAGS = $(PRE_DEFS) $(CFLAGS) $(PROFILE_CFLAGS) $(POST_DEFS)
1261 1263
1262 LINT_CFLAGS = -DLINT -I. $(PRE_DEFS) $(POST_DEFS) -Dinline= -D__extension__= -Dalloca=alloca -D"__attribute__(x)=" 1264 LINT_CFLAGS = -DLINT -I. $(PRE_DEFS) $(POST_DEFS) -Dinline= -D__extension__= -Dalloca=alloca
1265
1266 LINT_EXTRA = -DUSE_SNIFF -DHANGUL_INPUT -D"__attribute__(x)="
1263 1267
1264 DEPEND_CFLAGS = -DPROTO -DDEPEND -DFEAT_GUI $(LINT_CFLAGS) 1268 DEPEND_CFLAGS = -DPROTO -DDEPEND -DFEAT_GUI $(LINT_CFLAGS)
1265 1269
1266 PFLAGS = $(PROTO_FLAGS) -DPROTO $(LINT_CFLAGS) 1270 PFLAGS = $(PROTO_FLAGS) -DPROTO $(LINT_CFLAGS)
1267 1271
2170 sed -e 's+^\([^ ]*\.o\)+objects/\1+' >> tmp_make; done 2174 sed -e 's+^\([^ ]*\.o\)+objects/\1+' >> tmp_make; done
2171 mv tmp_make Makefile 2175 mv tmp_make Makefile
2172 2176
2173 # Run lint. Clean up the *.ln files that are sometimes left behind. 2177 # Run lint. Clean up the *.ln files that are sometimes left behind.
2174 lint: 2178 lint:
2175 lint $(LINT_OPTIONS) $(LINT_CFLAGS) -DUSE_SNIFF -DHANGUL_INPUT $(LINT_SRC) 2179 lint $(LINT_OPTIONS) $(LINT_CFLAGS) $(LINT_EXTRA) $(LINT_SRC)
2176 -rm -f *.ln 2180 -rm -f *.ln
2177 2181
2178 # Check dosinst.c with lint. 2182 # Check dosinst.c with lint.
2179 lintinstall: 2183 lintinstall:
2180 lint $(LINT_OPTIONS) -DWIN32 -DUNIX_LINT dosinst.c 2184 lint $(LINT_OPTIONS) -DWIN32 -DUNIX_LINT dosinst.c