mirror of
https://github.com/st3fan/ewm.git
synced 2024-11-16 00:08:30 +00:00
19 lines
394 B
Makefile
19 lines
394 B
Makefile
|
|
CC=cc
|
|
CFLAGS=-O3 -std=c99 -Werror -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
|
|
SOURCES=cpu.c ins.c pia.c mem.c ewm.c fmt.c
|
|
OBJECTS=$(SOURCES:.c=.o)
|
|
LIBS=-lcurses
|
|
EXECUTABLE=ewm
|
|
|
|
all: $(SOURCES) $(EXECUTABLE)
|
|
|
|
clean:
|
|
rm -f $(OBJECTS) $(EXECUTABLE)
|
|
|
|
$(EXECUTABLE): $(OBJECTS)
|
|
$(CC) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $@
|
|
|
|
.c.o:
|
|
$(CC) $(CFLAGS) $< -c -o $@
|