DIR = apps APPS = ittc_ca ittc_req OBJS = ittc_ca.o ittc_req.o apps.o top: (cd ..; $(MAKE) SUBDIRS=$(DIR) subdirs) all: $(APPS) # app_rand.c was in the linker line, not the object dependencies. # this caused it to use system default openssl, not local openssl, # so headers were different... very obscure... ittc_ca: ittc_ca.o apps.o app_rand.o $(LIB) $(CC) -o ittc_ca ittc_ca.o apps.o app_rand.o $(LDFLAGS) ittc_req: ittc_req.o apps.o app_rand.o $(LIB) $(CC) -o ittc_req ittc_req.o apps.o app_rand.o $(LDFLAGS) clean: $(RM) $(APPS) $(OBJS)