Added C implementation (incomplete)
This commit is contained in:
parent
ef5c176822
commit
68c34c5346
11 changed files with 749 additions and 0 deletions
23
pixelnuke/Makefile
Normal file
23
pixelnuke/Makefile
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
.PHONY: default all clean
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -pthread -g
|
||||
LIBS = -levent -levent_pthreads -lrt -lGL -lGLEW -lglfw
|
||||
TARGET = pixelnuke
|
||||
|
||||
default: $(TARGET)
|
||||
all: default
|
||||
|
||||
OBJECTS = $(patsubst %.c, %.o, $(wildcard *.c))
|
||||
HEADERS = $(wildcard *.h)
|
||||
|
||||
%.o: %.c $(HEADERS)
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
.PRECIOUS: $(TARGET) $(OBJECTS)
|
||||
|
||||
$(TARGET): $(OBJECTS)
|
||||
$(CC) $(CFLAGS) $(OBJECTS) -Wall $(LIBS) -o $@
|
||||
|
||||
clean:
|
||||
-rm -f *.o $(TARGET)
|
||||
Loading…
Add table
Add a link
Reference in a new issue