patch-src_Makefile_in 837 B

123456789101112131415161718192021222324252627282930313233343536
  1. $OpenBSD: patch-src_Makefile_in,v 1.3 2017/02/28 20:35:18 naddy Exp $
  2. --- src/Makefile.in.orig Wed Dec 16 14:34:39 2009
  3. +++ src/Makefile.in Tue Feb 28 21:32:18 2017
  4. @@ -17,6 +17,7 @@
  5. # along with OSM2Go. If not, see <http://www.gnu.org/licenses/>.
  6. #
  7. +CC = @CC@
  8. APP = @PACKAGE@
  9. prefix = @prefix@
  10. datarootdir = @datarootdir@
  11. @@ -40,18 +41,18 @@ LDFLAGS = @LIBS@
  12. all: $(APP)
  13. -%.o: %.c Makefile
  14. - gcc $(CFLAGS) -o $@ -c $<
  15. +.c.o:
  16. + $(CC) $(CFLAGS) -o $@ -c $<
  17. $(APP): $(OBJS) Makefile
  18. - gcc $(LDFLAGS) -o $@ $(OBJS)
  19. + $(CC) $(LDFLAGS) -o $@ $(OBJS)
  20. clean:
  21. rm -f osm2go *.o *~ */*~ \#*\# version.h *.bak
  22. install: $(APP)
  23. - install -d $(DESTDIR)$(prefix)$(bindir)
  24. - install $(APP) $(DESTDIR)$(prefix)$(bindir)
  25. + install -d $(PREFIX)$(bindir)
  26. + install $(APP) $(PREFIX)$(bindir)
  27. dep:
  28. makedepend -Y -fMakefile.in *.c