2022-03-08 04:43:05 +08:00
|
|
|
|
|
|
|
CC = cc
|
2023-04-12 00:08:58 +08:00
|
|
|
FLAGS = -m32
|
2023-04-16 19:11:38 +08:00
|
|
|
OPENWINHOME = /usr
|
2022-03-08 04:43:05 +08:00
|
|
|
MFILE =
|
2023-04-16 15:30:02 +08:00
|
|
|
INCDIR = -I/usr/include
|
2023-04-12 00:08:58 +08:00
|
|
|
LIBDIR = -L/usr/lib32
|
2023-04-16 15:30:02 +08:00
|
|
|
LIBS = -lxview -lolgx -lX11 -ltirpc
|
2022-03-08 04:43:05 +08:00
|
|
|
|
|
|
|
libs.o = Alloc.o HGLfuncs.o
|
|
|
|
|
|
|
|
all: mapview MakeCons Consto01mask PrintStrat Translate heapsortHGL DotPlotTool
|
|
|
|
|
|
|
|
Alloc.o: Alloc.c
|
|
|
|
$(CC) $(FLAGS) -c Alloc.c
|
|
|
|
|
|
|
|
HGLfuncs.o: HGLfuncs.c
|
|
|
|
$(CC) $(FLAGS) -c HGLfuncs.c
|
|
|
|
|
|
|
|
MAP_ChooseFile.o: MAP_ChooseFile.c
|
|
|
|
$(CC) $(FLAGS) -c MAP_ChooseFile.c $(INCDIR)
|
|
|
|
|
|
|
|
mapview: mapview.c MAP_ChooseFile.o $(libs.o)
|
|
|
|
$(CC) $(FLAGS) -o $@ $@.c MAP_ChooseFile.o $(libs.o) $(INCDIR) $(LIBDIR) $(LIBS)
|
|
|
|
|
|
|
|
DotPlotTool: DotPlotTool.c MAP_ChooseFile.o $(libs.o)
|
|
|
|
$(CC) $(FLAGS) -o $@ $@.c MAP_ChooseFile.o $(libs.o) \
|
|
|
|
$(INCDIR) $(LIBDIR) $(LIBS)
|
|
|
|
|
|
|
|
MakeCons: MakeCons.c $(libs.o) $(MKFILE)
|
|
|
|
$(CC) $(FLAGS) -o $@ $@.c $(libs.o)
|
|
|
|
|
|
|
|
Translate: Translate.c $(libs.o) $(MKFILE)
|
|
|
|
$(CC) $(FLAGS) -o $@ $@.c $(libs.o)
|
|
|
|
|
|
|
|
heapsortHGL: heapsortHGL.c $(libs.o) $(MKFILE)
|
|
|
|
$(CC) $(FLAGS) -o $@ $@.c $(libs.o)
|
|
|
|
|
|
|
|
PrintStrat: PrintStrat.c $(libs.o) $(MKFILE)
|
|
|
|
$(CC) $(FLAGS) -o $@ $@.c $(libs.o)
|
|
|
|
|
|
|
|
Consto01mask: Consto01mask.c $(libs.o) $(MKFILE)
|
|
|
|
$(CC) $(FLAGS) -o $@ $@.c $(libs.o)
|