dos33fsprogs/gr-sim/hgr/Makefile

48 lines
860 B
Makefile
Raw Normal View History

2018-07-02 01:50:51 +00:00
CC = gcc
CFLAGS = -Wall -O2 -I.. -g
LFLAGS = -lm
SDL_LIBS= `sdl-config --libs`
SDL_INCLUDE= `sdl-config --cflags`
GR_SIM = ../gr-sim.a
2018-09-04 03:44:53 +00:00
all: fireworks lines image_load hgr_view
2018-07-02 01:50:51 +00:00
###
hgr_view: hgr_view.o $(GR_SIM)
$(CC) $(LFLAGS) $(SDL_LIBS) -o hgr_view hgr_view.o $(GR_SIM)
hgr_view.o: hgr_view.c
$(CC) $(CFLAGS) -c hgr_view.c
2018-07-02 01:50:51 +00:00
2018-07-02 04:33:46 +00:00
###
image_load: image_load.o $(GR_SIM)
$(CC) $(LFLAGS) $(SDL_LIBS) -o image_load image_load.o $(GR_SIM)
image_load.o: image_load.c
$(CC) $(CFLAGS) -c image_load.c
2018-07-02 01:50:51 +00:00
###
lines: lines.o $(GR_SIM)
$(CC) $(LFLAGS) $(SDL_LIBS) -o lines lines.o $(GR_SIM)
lines.o: lines.c
$(CC) $(CFLAGS) -c lines.c
2018-09-04 03:44:53 +00:00
###
fireworks: fireworks.o $(GR_SIM)
$(CC) $(LFLAGS) $(SDL_LIBS) -o fireworks fireworks.o $(GR_SIM)
fireworks.o: fireworks.c
$(CC) $(CFLAGS) -c fireworks.c
2018-07-02 01:50:51 +00:00
####
clean:
2018-09-04 03:44:53 +00:00
rm -f *~ *.o fireworks lines image_load hgr_view