This commit is contained in:
Mattia Verga 2025-03-10 20:56:13 +08:00 committed by GitHub
commit f48ad4f5ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 9 deletions

View File

@ -197,21 +197,23 @@ OBJS = \
xephem.o \
xmisc.o
all: libs xephem xephem.1
LIBRARIES := libip liblilxml libjpegd libpng libz
xephem: $(INCS) $(OBJS)
all: $(LIBRARIES) xephem xephem.1
xephem: $(INCS) $(OBJS) $(LIBRARIES)
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
xephem.1: xephem.man
nroff -man $? > $@
libs:
cd ../../libastro; make
cd ../../libip; make
cd ../../libjpegd; make
cd ../../liblilxml; make
cd ../../libpng; make
cd ../../libz; make
libs: $(LIBRARIES)
$(LIBRARIES): libastro
$(MAKE) --directory=../../$@
libastro:
$(MAKE) --directory=../../$@
clean:
rm -fr *.o ../../lib*/*.[ao]