Skip to content

Commit

Permalink
slogic.c: Created from slogic.h.
Browse files Browse the repository at this point in the history
firmware.c: Created from firmware.h.
usbutil.c: Created from usbutil.h.
Makefile: Including "Makefile.local" to contain local settings (like PKG_CONFIG).
.gitignore: Ignoring vim files and Makefile.local.
  • Loading branch information
trygvis committed Dec 21, 2009
1 parent 8c9c4a7 commit 887584b
Show file tree
Hide file tree
Showing 9 changed files with 1,480 additions and 1,435 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
*.o
.deps
*.swp
Makefile.local

/main
11 changes: 8 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
sinclude Makefile.local

CFLAGS ?= -g
CFLAGS += -Wall

Expand All @@ -6,10 +8,13 @@ PKGS = libusb-1.0
CFLAGS += `$(PKG_CONFIG) --cflags $(PKGS)`
LDLIBS += `$(PKG_CONFIG) --libs $(PKGS)`

all:run
all: main

run:main
run: main
./main

main: main.o slogic.o firmware.o usbutil.o

firmware.h:
$(MAKE) -C firmware

Expand All @@ -20,5 +25,5 @@ indent_kr:
indent -kr *.c *.h

sinclude .deps
.deps: *.c
.deps: $(wildcard *.c) $(wildcard *.h)
$(CC) $(CFLAGS) $(CPPFLAGS) -MM *.c > .deps
Loading

0 comments on commit 887584b

Please sign in to comment.