now it breaks on including Xlib.h
This commit is contained in:
parent
35288b2ca7
commit
46ef865ebf
3 changed files with 7 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,3 +2,4 @@
|
|||
*.c
|
||||
*.xml
|
||||
ableC.jar
|
||||
/multiclip
|
||||
|
|
7
Makefile
7
Makefile
|
@ -12,6 +12,9 @@ override XCFLAGS += $(addprefix -I,$(XC_INCLUDE_DIRS))
|
|||
|
||||
override SVFLAGS += $(addprefix -I ,$(GRAMMAR_DIRS))
|
||||
|
||||
override LIBS += $(shell pkg-config --libs bdw-gc)
|
||||
override INCLUDES += $(shell pkg-config --cflags bdw-gc)
|
||||
|
||||
all: multiclip
|
||||
|
||||
$(ABLEC_JAR): $(GRAMMAR_SOURCES)
|
||||
|
@ -19,10 +22,10 @@ $(ABLEC_JAR): $(GRAMMAR_SOURCES)
|
|||
silver-ableC -o $@ $(SVFLAGS) $(ARTIFACT)
|
||||
|
||||
multiclip: main.c
|
||||
gcc -o $@ -lgc $<
|
||||
gcc -o $@ $(LIBS) $(INCLUDES) $<
|
||||
|
||||
main.c: main.xc $(ABLEC_JAR)
|
||||
java -jar $(ABLEC_JAR) $< -o $@ $(XCFLAGS)
|
||||
java -jar $(ABLEC_JAR) $< $(XCFLAGS)
|
||||
|
||||
clean:
|
||||
rm -f multiclip
|
||||
|
|
1
main.xc
1
main.xc
|
@ -1,4 +1,5 @@
|
|||
#include <string.xh>
|
||||
#include <X11/Xlib.h>
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
|
|
Loading…
Reference in a new issue