cc -o $@ ./Server/option.c
./Server:: ./Common ./Server/option
- $(MAKE) -C $@ $(FLAGS) EXTOBJS=`./Server/option objs ../` EXTLIBS=`./Server/option libs ../`
+ $(MAKE) -C $@ $(FLAGS) EXTOBJS="`./Server/option objs ../`" EXTLIBS="`./Server/option libs ../`" EXTCFLAGS="`./Server/option cflags ../`" EXTLDFLAGS="`./Server/option ldflags ../`"
./Module:: ./Common
$(MAKE) -C $@ $(FLAGS)
all: tewi$(EXEC)
tewi$(EXEC): $(OBJS) ../Common/common.a
- $(CC) $(LDFLAGS) -o $@ $(OBJS) $(EXTLIBS) $(LIBS) ../Common/common.a
+ $(CC) $(LDFLAGS) $(EXTLDFLAGS) -o $@ $(OBJS) $(EXTLIBS) $(LIBS) ../Common/common.a
.c.o:
- $(CC) $(CFLAGS) -c -o $@ $<
+ $(CC) $(CFLAGS) $(EXTCFLAGS) -c -o $@ $<
clean:
rm -f *.o tewi *.exe
#endif
} else if(strcmp(argv[1], "ldflags") == 0) {
#ifndef NO_SSL
- printf("-I %s/openssl/lib", argv[2]);
+ printf("-L %s/openssl/lib", argv[2]);
#endif
} else if(strcmp(argv[1], "objs") == 0) {
#ifndef NO_SSL
* Our current timezone
*/
ep = find_string(bp, &i,
- (const char * const *)tzname,
+ (const char * const *)NULL,
NULL, 2);
if (ep != NULL) {
tm->tm_isdst = i;