|
| 1 | +# NOTE: Makefile.in is converted into Makefile by the configure script |
| 2 | +# in the parent directory. Once configure has run, you can recreate |
| 3 | +# the Makefile by running just config.status. |
| 4 | + |
| 5 | +# === Variables set by config.stat === |
| 6 | + |
| 7 | +srcdir= @srcdir@ |
| 8 | +VPATH= @srcdir@ |
| 9 | + |
| 10 | +CC= @CC@ |
| 11 | +RANLIB= @RANLIB@ |
| 12 | + |
| 13 | + |
| 14 | +# === Other things that are customizable but not by configure === |
| 15 | + |
| 16 | +AR= ar |
| 17 | +MKDEP= mkdep |
| 18 | +SHELL= /bin/sh |
| 19 | + |
| 20 | +INCLDIR= $(srcdir)/../Py |
| 21 | +OPT= -g |
| 22 | +CFLAGS= $(OPT) -I$(INCLDIR) |
| 23 | + |
| 24 | + |
| 25 | +# === Fixed definitions === |
| 26 | + |
| 27 | +SRCS= \ |
| 28 | + bltinmodule.c ceval.c cgensupport.c compile.c \ |
| 29 | + errors.c fmod.c frozenmain.c getcwd.c graminit.c \ |
| 30 | + import.c marshal.c mathmodule.o modsupport.c posixmodule.c \ |
| 31 | + pythonrun.c strerror.c strtod.c strtol.c \ |
| 32 | + structmember.c structmodule.c \ |
| 33 | + sysmodule.c timemodule.c traceback.c |
| 34 | + |
| 35 | +OBJS= \ |
| 36 | + bltinmodule.o ceval.o cgensupport.o compile.o \ |
| 37 | + errors.o fmod.o frozenmain.o getcwd.o graminit.o \ |
| 38 | + import.o marshal.o mathmodule.o modsupport.o posixmodule.o \ |
| 39 | + pythonrun.o strerror.o strtod.o strtol.o \ |
| 40 | + structmember.o structmodule.o \ |
| 41 | + sysmodule.o timemodule.o traceback.o |
| 42 | + |
| 43 | +LIB= libObjects.a |
| 44 | + |
| 45 | +MYLIBS= $(LIB) ../Objects/libObjects.a ../Parser/libParser.a |
| 46 | + |
| 47 | +SYSLIBS= -lm |
| 48 | + |
| 49 | + |
| 50 | +# === Rules === |
| 51 | + |
| 52 | +all: $(LIB) python |
| 53 | + |
| 54 | +$(LIB): $(OBJS) |
| 55 | + $(AR) cr $(LIB) $(OBJS) |
| 56 | + |
| 57 | +python: pythonmain.o config.o $(MYLIBS) |
| 58 | + $(CC) pythonmain.o config.o $(MYLIBS) $(SYSLIBS) -o python |
| 59 | + |
| 60 | +clean: |
| 61 | + -rm -f $(OBJS) |
| 62 | + -rm -f core *~ [@,#]* *.old *.orig *.rej |
| 63 | + |
| 64 | +clobber: clean |
| 65 | + -rm -f $(LIB) tags TAGS |
| 66 | + |
| 67 | +Makefile: Makefile.in ../config.status |
| 68 | + (cd ..; $(SHELL) config.status) |
| 69 | + |
| 70 | +depend: $(SRCS) |
| 71 | + $(MKDEP) $(CFLAGS) $(SRCS) $(PGENSRCS) |
| 72 | + |
| 73 | +# DO NOT DELETE THIS LINE -- mkdep uses it. |
| 74 | +# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. |
| 75 | +# IF YOU PUT ANYTHING HERE IT WILL GO AWAY |
0 commit comments