mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-12-30 22:32:48 +00:00
32 lines
483 B
Makefile
32 lines
483 B
Makefile
CC = gcc
|
|
CFLAGS = -Wall -O2 -I.. -g
|
|
LFLAGS = -lm
|
|
|
|
SDL_LIBS= `sdl-config --libs`
|
|
SDL_INCLUDE= `sdl-config --cflags`
|
|
GR_SIM = ../gr-sim.a
|
|
|
|
all: nibble
|
|
|
|
####
|
|
|
|
nibble: nibble.o $(GR_SIM)
|
|
$(CC) $(LFLAGS) $(SDL_LIBS) -o nibble nibble.o $(GR_SIM)
|
|
|
|
nibble.o: nibble.c
|
|
$(CC) $(CFLAGS) -c nibble.c
|
|
|
|
####
|
|
|
|
nibble2: nibble2.o $(GR_SIM)
|
|
$(CC) $(LFLAGS) $(SDL_LIBS) -o nibble2 nibble2.o $(GR_SIM)
|
|
|
|
nibble2.o: nibble2.c
|
|
$(CC) $(CFLAGS) -c nibble2.c
|
|
|
|
|
|
####
|
|
|
|
clean:
|
|
rm -f *~ *.o nibble nibble2
|