This repository has been archived by the owner on May 13, 2024. It is now read-only.
forked from FozzTexx/hp-plot
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
71 lines (52 loc) · 1.76 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
PRODUCT= cat-serial
CFILES= cat-serial.c ttlock.c getargs.c
CFLAGS= -O -g -Wall -I$(HOME)/Unix/$(OSTYPE)/include
-include Makefile.preamble
BIN_DIR=.
.SUFFIXES: .m .h,v .c,v .m,v .js .jh
RC_HOSTTYPE= `arch`-`uname`
LIBS= -L$(HOME)/Unix/$(OSTYPE)/lib -lobjc -lpthread -ldl
#LIBPATHS= $(HOME)/Unix/lib/libfozzlib.a
OFILES=$(CFILES:.c=.o) $(MFILES:.m=.o) $(FFILES:.f=.o) $(CLASSES:.m=.o) $(CPPFILES:.cpp=.o)
PRODUCT_DEPENDS= $(OFILES) $(OTHER_OFILES) $(HFILES) $(LIBPATHS)
MAKEDEP=Makefile.depend
MAKEDEPENDS=Makefile.dependencies
ALL_CFLAGS= $(CFLAGS) $(OTHER_CFLAGS)
all::
@$(MAKE) $(PRODUCT) $(OTHER_TARGETS)
.c.o:
$(CC) $(ALL_CFLAGS) -c $*.c -o $*.o
.cpp.o:
$(CXX) $(CXXFLAGS) $(ALL_CFLAGS) -c $*.cpp -o $*.o
.f.o:
$(FC) $(FFLAGS) $(OTHER_FFLAGS) -c $*.f
.m.o:
$(CC) $(OCFLAGS) $(ALL_CFLAGS) -c $*.m -o $*.o
.y.o:
$(YACC) $*.y
$(CC) $(ALL_CFLAGS) -c y.tab.c
rm -f y.tab.c
mv y.tab.o $*.o
.c,v.c:
co -q $*.c
.m,v.m:
co -q $*.m
.h,v.h:
co -q $*.h
$(OFILES) $(PRODUCT_OFILES): $(HFILES)
clean::
$(RM) $(RMFLAGS) -r $(PRODUCT) $(MAKEDEPENDS) $(MAKEDEP) *~ *_obj *_bin $(OTHER_GARBAGE) *.o
debug::
@$(MAKE) $(PRODUCT).debug "CFLAGS = -DDEBUG $(CFLAGS)" "DIRNAME = debug_"
shar::
shar Makefile $(PRODUCT_CFILES) $(CFILES) $(HFILES) $(OTHER_FILES) > part01
$(MAKEDEPENDS):: $(CLASSES) $(MFILES) $(CFILES)
$(RM) $(RMFLAGS) $(MAKEDEPENDS)
$(CC) -MM $(CFLAGS) $(CLASSES) $(MFILES) $(CFILES) > $(MAKEDEPENDS)
depend:: $(MAKEDEPENDS)
$(PRODUCT): $(PRODUCT_DEPENDS)
$(CC) $(CFLAGS) $(OTHER_CFLAGS) -o $@ $(OFILES) $(PRODUCT_OFILES) $(OTHER_OFILES) $(LIBS) $(OTHER_LIBS)
$(PRODUCT).debug: $(PRODUCT_DEPENDS)
$(CC) $(CFLAGS) $(OTHER_CFLAGS) -o $@ $(OFILES) $(PRODUCT_OFILES) $(OTHER_OFILES) $(LIBS) $(OTHER_LIBS)
-include Makefile.postamble
-include Makefile.dependencies