X-Git-Url: https://uglyman.kremlin.cc/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile;h=342c3bf57249b4b65772aee556d408a03395effd;hb=5b435dd108feb27c4d14f71661b377a171969ea7;hp=222a403e6a46e6f8f5ce668c644d719936ff87dc;hpb=32a2d8e20882543d2feac2641c54ff0ba65f84fa;p=systembsd.git diff --git a/Makefile b/Makefile index 222a403..342c3bf 100644 --- a/Makefile +++ b/Makefile @@ -1,18 +1,15 @@ -CC=gcc -BINPATH=bin/ -CFLAGS=-c -Wall -std=gnu99 -DEVFLAGS= -g -o $(BINPATH)devel/outfile-tmp \ --Wextra -Werror -pedantic \ --O0 $(SOURCES) +.PHONY: all -SOURCES=main.c +CFLAGS=-Wall -Wextra -Werror +DEBUGF=-O0 -v -g +SRCDIR=src +INTFDIR=$(SRCDIR)/interfaces +SANITY=-Wno-unused-variable -Wno-unused-parameter -.PHONY: all build clean install +GLIBF=`pkg-config --cflags --libs glib-2.0 gobject-2.0 gio-2.0 gio-unix-2.0` -all: - $(CC) $(CFLAGS) $(DEVFLAGS) - -clean: -build: -install: +main: + gcc -o bin/out.bin $(DEBUGF) $(GLIBF) $(SANITY) $(SRCDIR)/main.c +main-publish: + gcc -o bin/out.bin $(CFLAGS) $(GLIBF) $(SANITY) $(SRCDIR)/main.c