Giter Site home page Giter Site logo

Makefile? about astrolog HOT 3 CLOSED

cruiserone avatar cruiserone commented on June 24, 2024
Makefile?

from astrolog.

Comments (3)

CruiserOne avatar CruiserOne commented on June 24, 2024 1

Don't worry @toddcarnes, the request isn't to delete the file Makefile, but rather improve its contents. For example, you should be able to do the common scenario of "make clean", and it's easier to just use the "-s" switch with linking instead of manually running "strip astrolog" afterward. Yes, these changes are reasonable, so something similar to them will be applied next version, thank you. :)

from astrolog.

toddcarnes avatar toddcarnes commented on June 24, 2024

from astrolog.

zvezdochiot avatar zvezdochiot commented on June 24, 2024

Hi all.

There is one more variant:

mkdir -v src
mv -v *.cpp *.h src
cat Makefile
# Astrolog (Version 7.30) File: Makefile (Unix version)
#
# IMPORTANT NOTICE: Astrolog and all chart display routines and anything
# not enumerated elsewhere in this program are Copyright (C) 1991-2020 by
# Walter D. Pullen ([email protected], http://www.astrolog.org/astrolog.htm).
# Permission is granted to freely use, modify, and distribute these
# routines provided these credits and notices remain unmodified with any
# altered or distributed versions of the program.
#
# First created 11/21/1991.
#
# This Makefile is included only for convenience. One could easily compile
# Astrolog on most Unix systems by hand with the command:
# % cc -c -O *.cpp; cc -o astrolog *.o -lm -lX11
# Generally, all that needs to be done to compile once astrolog.h has been
# edited, is compile each source file, and link them together with the math
# library, and if applicable, the main X library.
#
NAME = astrolog
OBJS = src/astrolog.o \
       src/atlas.o \
       src/calc.o \
       src/charts0.o \
       src/charts1.o \
       src/charts2.o \
       src/charts3.o \
       src/data.o \
       src/express.o \
       src/general.o \
       src/intrpret.o \
       src/io.o \
       src/matrix.o \
       src/placalc.o \
       src/placalc2.o \
       src/xdata.o \
       src/xgeneral.o \
       src/xdevice.o \
       src/xcharts0.o \
       src/xcharts1.o \
       src/xcharts2.o \
       src/xscreen.o \
       src/swecl.o \
       src/swedate.o \
       src/swehouse.o \
       src/swejpl.o \
       src/swemmoon.o \
       src/swemplan.o \
       src/sweph.o \
       src/swephlib.o

# If you don't have X windows, delete the "-lX11" part from the line below:
# If not compiling with GNUC, delete the "-ldl" part from the line below:
CPP = cc
CPPFLAGS = -Wall -O -Wno-write-strings -Wno-narrowing -Wno-comment -I./src
COPTS ?= -DSWITCHES
LDFLAGS = -lm -lX11 -ldl -s
RM = rm -f

$(NAME): $(OBJS)
	$(CPP) $(CPPFLAGS) $(COPTS) $^ -o $@ $(LDFLAGS)

clean:
	$(RM) $(OBJS) $(NAME)
#

Makefile.gz

from astrolog.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.