gde_linux/HGL_SRC/Makefile

44 lines
1.1 KiB
Makefile
Raw Normal View History

2022-03-08 04:43:05 +08:00
CC = cc
2023-04-12 00:08:58 +08:00
FLAGS = -m32
OPENWINHOME = ../usr
2022-03-08 04:43:05 +08:00
MFILE =
2023-04-12 00:08:58 +08:00
INCDIR = -I/usr/include/xview
LIBDIR = -L/usr/lib32
2022-03-08 04:43:05 +08:00
LIBS = -lxview -lolgx -lX11
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)