Skip to content

Commit

Permalink
CLEANUP: Makefile dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Wielemaker authored and Jan Wielemaker committed Feb 8, 2017
1 parent d8ae466 commit d5d14f4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,21 @@ HDTHOME=/home/janw/3rdparty/hdt-cpp/hdt-lib
SOBJ= $(PACKSODIR)/hdt4pl.$(SOEXT)
CFLAGS+=-I$(HDTHOME)/include -g
LIBS= -L$(HDTHOME) -lhdt
OBJ= c/hdt4pl.o
LD=g++

all: $(SOBJ)

$(SOBJ): hdt4pl.o
$(SOBJ): $(OBJ)
mkdir -p $(PACKSODIR)
$(LD) $(ARCH) $(LDSOFLAGS) -o $@ $< $(LIBS) $(SWISOLIB)

hdt4pl.o:
c/hdt4pl.o: c/hdt4pl.cpp
$(CC) $(ARCH) $(CFLAGS) -c -o $@ c/hdt4pl.cpp

check::
install::
clean:
rm -f hdt4pl.o
rm -f $(OBJ)
distclean: clean
rm -f $(SOBJ)

0 comments on commit d5d14f4

Please sign in to comment.