mirror of
https://github.com/nielssp/csol
synced 2024-11-16 19:49:01 +01:00
16 lines
309 B
Makefile
16 lines
309 B
Makefile
CC = gcc
|
|
CFLAGS = -Wall -pedantic -DUSE_PDCURSES -DUSE_GETOPT
|
|
LDFLAGS = -l:libpdcurses.a
|
|
CSOL_SRCDIR = ../src
|
|
|
|
SOURCES = $(wildcard $(CSOL_SRCDIR)/*.c)
|
|
OBJS = $(SOURCES:.c=.o)
|
|
|
|
all: csol.exe
|
|
|
|
csol.exe: $(OBJS)
|
|
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f $(OBJS) csol.exe
|