mirror of https://github.com/XEphem/XEphem.git
Make build parallel safe
This commit is contained in:
parent
139b2ea2f1
commit
8b0dc94428
|
|
@ -185,21 +185,23 @@ OBJS = \
|
||||||
xephem.o \
|
xephem.o \
|
||||||
xmisc.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)
|
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
|
||||||
|
|
||||||
xephem.1: xephem.man
|
xephem.1: xephem.man
|
||||||
nroff -man $? > $@
|
nroff -man $? > $@
|
||||||
|
|
||||||
libs:
|
libs: $(LIBRARIES)
|
||||||
cd ../../libastro; make
|
|
||||||
cd ../../libip; make
|
$(LIBRARIES): libastro
|
||||||
cd ../../libjpegd; make
|
$(MAKE) --directory=../../$@
|
||||||
cd ../../liblilxml; make
|
|
||||||
cd ../../libpng; make
|
libastro:
|
||||||
cd ../../libz; make
|
$(MAKE) --directory=../../$@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr *.o ../../lib*/*.[ao]
|
rm -fr *.o ../../lib*/*.[ao]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue